Poland to form into a recognizable unitary and territorial entity around the middle of the 10th century under the Piast dynasty. Poland's first historically documented ruler, Mieszko I, accepted Christianity with the Baptism of Poland in 966, as the new official religion of his subjects. The bulk of the population converted in the course of the next few centuries. In 1000, Boleslaw the Brave, continuing the policy of his father Mieszko, held a Congress of Gniezno and created the metropolis of Gniezno and the dioceses of Kraków, Kołobrzeg, and Wrocław. However, the pagan unrest led to the transfer of the capital
Mieszko I of Poland probably closer to the latter date. Due to the lack of sources it is not possible to determine exactly which lands he inherited. Certainly among them were the areas inhabited by the Polans and Goplans, as well as the Sieradz-Łęczyca lands and Kuyavia. It is possible that this state included also Masovia and Gdańsk Pomerania. Soon the new ruler had faced the task of integrating the relatively large, ethnically and culturally heterogeneous territory. Although the residents of areas controlled by Mieszko spoke mostly one language, had similar beliefs and reached a similar level of economic and general development, they were