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 Polish take-over. Possibly the Wolinians themselves called the Margrave and asked his help. In any event, Odo's forces moved in and on 24 June 972 twice engaged Mieszko's army at the village of "Cidini", commonly identified with Cedynia. At first, the Margrave defeated Mieszko's forces; subsequently the Duke's brother Czcibor defeated the Germans in the decisive stage, inflicting great losses among their troops. It may be that Mieszko intentionally staged the retreat, which was followed by a surprise attack on the flank of the German pursuing troops. After this battle, Mieszko and Odo were called to the Imperial Diet in