The importance of studying migration processes is due to their massive, regular nature, the impact on the political and social environment of the host countries. Often, a poorly thought out, inconsistent and generally ineffective immigration policy leads to problems in the host countries, reduces the quality of life of the indigenous population, thus creating a split in society, which may result in increasing migrant phobia, xenophobia, etc. A particularly striking example of this situation can serve as some countries of the European Union, in particular, Germany and France. The populations of these countries account for one of the largest shares of migrants not only in Europe, but throughout the world. Of particular research interest is the change in the political preferences of the voters in favor of the forces advocating a rigid migration policy. Within the framework of the systematic and historical-descriptive approaches, the electoral processes in Germany and France were analyzed during the period of the most intense manifestation of the migration problem. It was found that in parallel with the migration crisis in the host countries, a reshuffling of political forces is rapidly taking place: lesser-known political leaders, parties, movements not only appear on the political arena, but quickly gain voters’ support, starting to determine immigration policy. There is a clear relationship between anti-immigration slogans and the entry into the arena of Germany and France of right-wing parties, which are fundamentally changing the political alignment of forces and their political course as a whole. Supporters of the right-wing political persuasion quickly gained popularity at the peak of the migration crisis, but with this problem fading into the background, the need for these political forces began to decrease. As a result of the study, the hypothesis that the migration problem is one of the key factors in the alignment of political forces in Germany and France was confirmed.