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 took place on this occasion, the information on the return of the accord, acting for the good of the country and release of prisoners indicate that a conflict actually did occur. The marriage with Oda considerably affected the position and prestige of Mieszko, who entered the world of Saxon aristocracy. As a son-in-law of Margrave Dietrich, he gained an ally in one of the most influential politicians of the Holy Roman Empire. As the Margrave was a distant relative of the Emperor, Mieszko became a member of the circle connected to the imperial ruling house. Probably in the early 980s