Here, we advance the ideological migration hypothesis — individuals choose to live in communities with ideologies similar to their own to satisfy their need to belong. In Study 1, incongruity between personal and community ideology predicted greater residential mobility and attraction to more ideologically-congruent communities. In Study 2, participants who perceived their ideology to be at odds with their community’s displayed a decreased sense of belonging and an increased desire to migrate. In Studies 3 and 4, participants induced to view their current community as growing more incongruent with their own ideology expressed a decreased sense of belonging and an increased desire to migrate. Ideological migration may contribute to the rise in segregation and polarization of the American electorate.