Does intra-national migration matter for partner choice? A number of conflicting hypotheses on the effects of migration on the likelihood of endogamy according to social class of origin are formulated and tested on the French historical record over the past two centuries. We conclude that migrants were less likely to marry endogamously, especially if they migrated from rural villages to cities; this is explained mainly by the fact that they thereby escaped the social pressure of their parents and peers and met more people from different social backgrounds. Contrary to what we expected, the relationships between migration characteristics and endogamy changed hardly at all over the two centuries. We also investigated whether temporal differences in endogamy could be explained partly by changes in migration patterns. We found that they could. The increase in the number of men and women living in or moving to cities was one particularly important cause of the decreasing likelihood of endogamy. Finally, we were interested in the possible bias in regional studies on endogamy. Our results show that this bias is especially large if these regions include only rural areas or cities. This is because the likelihood of endogamy differs between rural areas and cities, and is also especially low for people who move between these two types of region.