The role of education as a social institution in society is shown. The tasks of national education system at the present stage of rapid change in social consciousness are analyzed. The ways of modernization of national education with the aim of turning it into a resource to reduce social risks and social conflicts motivated by xenophobia, migrant-phobia, social aggression and intolerance are discussed. The necessity of introducing a system of education programs to ensure the development of tolerance, religious tolerance, civic patriotism and social identity among younger generation is shown.