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 to the Warta River). In all probability Mieszko decided to pay tribute in order to avoid an invasion similar to the one that Lusatia had suffered. This homage would take place in 965, or in 966 at the latest. Very likely the tribute applied only to the Lubusz land, which was in the German sphere of influence. This understanding of the tribute issue explains why already in 967 Mieszko I was described in the Saxon chronicles as the Emperor's friend (or ally, supporter, Latin: "amicus imperatoris"). Probably in 964 Mieszko began negotiations with the Bohemian ruler Boleslav I the Cruel.