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 situation at that time. Another debatable point is Thietmar's claim that Mieszko "subordinated himself to the King". Most historians believe that it was only a matter of recognition of Otto's royal authority. Some suggest that a fealty relationship could in fact be involved. Whether or not the German-Polish invasion of Bohemia actually happened, the friendly relations between the Czechs and the Poles came to an end. Bohemia resumed its earlier alliance with the Lutici, which caused in 990 a war with Mieszko, who was supported by Empress Theophanu. Duke Boleslav II was probably the first one to attack. As a