The article discusses the problems of implementing the ideological principles of migration policy, which are related to the purposeful influence on migrants in order to form a respectful attitude towards the spiritual and moral values of Russian society. The author argues that the preservation of the cultural code of Russian society is based on a strict migration policy aimed at cultivating the spiritual and moral values of Russia in the migration environment.