The article discusses the causes of the spread of the Magdeburg city law in the countries of Central and Eastern Europe in the 12th-18th centuries. It is concluded that at different stages of the historical development of some countries and regions different factors which were determined by the peculiarities of their socio-economic and political systems were operating.