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 III the Old several foreign policy successes through his daughter's marriages: Elisabeth about 1173 married Duke Soběslav II of Bohemia and through the dynastic arrangement between his daughter Anastasia and the Griffin duke Bogislaw I of Pomerania, Mieszko once again reinforced Polish sovereignty over the Pomeranian duchy. In 1177 Mieszko's first-born son Odon, fearing for his inheritance, rebelled against his father. He was supported by Bishop Gedko of Kraków, his cousin Bolesław the Tall and his uncle Casimir the Just. For Odon, the main reason of his rebellion was the favoritism of Mieszko to the offspring of his second marriage and the attempts