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 II the Fat and was succeeded by his son Henry II the Pious, who also assumed the regency over Opole-Racibórz. Shortly after, Mieszko II began to claim the government of their lands. It is unknown exactly when Mieszko II took over the rule over Opole-Racibórz, but this has been probably in late 1238 or early 1239 (who is more likely). One of the first politic decisions of Mieszko II was his marriage with Judith (b. 1222/25 – d. 4 December 1257/65?), daughter of Duke Konrad I of Masovia, who gave to the Duke of Opole-Racibórz greater autonomy in his rule. Mieszko II's mother