Casimir I the Restorer not supported by modern historians. Regardless, he left church work for good in 1031. Casimir's father, Mieszko II, was crowned King of Poland in 1025 after the death of his father Bolesław I the Brave. However, the powerful magnates of the country feared a strong central government like the one that existed under Bolesław I's rule. This led to considerable friction between the King and the nobility. Taking advantage of the King's precarious situation, Mieszko II's older half-brother Bezprym and younger brother Otto turned against him and allied themselves with the Holy Roman Emperor Conrad II, whose forces attacked Poland
Mieszko I, Duke of Cieszyn was on 1 January 1290. In internal politics he pursued vigorous policies. Mieszko carried out intensive colonizing policies and founded many settlements. He also gave city rights to several towns: Cieszyn, Oświęcim (in 1291), Bielsko, Skoczów and Fryštát. On 10 November 1292 he granted the city rights to Zator. Mieszko refused to support any of the Piast pretenders to the Polish throne (Henry IV Probus, Przemysł II and Władysław I the Elbow-high). Instead he stood alongside King Wenceslaus II of Bohemia. On 17 January 1291 the formal agreement was signed in Olomouc which formed the alliance between the Bohemian Kingdom,