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 Kazimierzowic "Gesta principum Polonorum" written in the early 12th century, put Mieszko third in order, among his brother. Modern historian, Janusz Bieniak, has supposed that Mieszko was the second son of Casimir I and was older than Władysław Herman, but most scholars disagree with this hypothesis. The date of Mieszko's birth was given by "Rocznik krakowski" (Kraków Annals). This source omitted dates of birth of Mieszko's brothers. Kazimierz Jasiński thought that "Rocznik" was started shortly before Mieszko's birth and this was the reason for absence of his older brothers. Przemysław Wiszewski supposed tha Casimir I chose Mieszko as his successor and