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 in the entry for the year 985 it is noted that Mieszko came to help the Saxons in their fight against some Slavic forces, presumably the Polabians. One year later, the Polish ruler had a personal meeting with the Emperor, an event mentioned in the "Annals of Hersfeld": According to Thietmar and other contemporary chronicles the gift given by Mieszko to the Emperor was a camel. The meeting consolidated the Polish-German alliance, with Mieszko joining Otto's expedition against a Slavic land, which "together they wholly devastated (...) with fire and tremendous depopulation". It is not clear which Slavic territory was