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, Duke of Cieszyn the Přemyslid dynasty in the person of Wenceslaus III, son and successor of Wenceslaus II. On 5 October 1305, Mieszko obtained his major victory when his daughter Viola Elisabeth married King Wenceslaus III. This union was a chance for Mieszko to make himself one of the most powerful figures in Bohemia, and he even began some attempts to obtain the Polish crown. However, Mieszko's promising career ended suddenly with the murder of Wenceslaus III (Olomouc, 4 August 1306). Viola Elisabeth never bore Wenceslaus III any children and the Přemyslid dynasty became extinct. After 1306 the political activity of Mieszko almost