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 Lambert to Hungary because during his travel he was stopped by Rus' troops. King Stephen I of Hungary wasn't favorable to accepting him in his country. Without alternatives, Mieszko II went to Bohemia. Duke Oldřich once again imprisoned him. This time the King wasn't counting with the Imperial support. Mieszko II was not only imprisoned but also castrated, which was to be a punishment to Bolesław I the Brave, who blinded Duke Boleslaus III the Red (Oldřich's brother) thirty years before. Mieszko II and his wife never reunited again; according to some sources they were either officially divorced or only separated.