In the largest megalopolises, among other things, there are several problems: the increasing stratification of society, the gap in the quality of life between the rich and the poor, the increasing number of homeless people, which reflected in the appearance of the city. The author describes the risks faced by the state and society, solving these problems.