Казимир I
Bolesław at first chose to continue his father's policy of cooperation with the Holy Roman Empire but when Emperor Otto III died in 1002, Bolesław's relationship with his successor Henry II turned out to be much more difficult, and it resulted in a series of wars (1002–1005, 1007–1013, 1015–1018). From 1003 to 1004, Bolesław intervened militarily in Czech dynastic conflicts. After his forces were removed from Bohemia in 1018, Bolesław retained Moravia. In 1013, the marriage between Bolesław's son Mieszko and Richeza of Lotharingia, the niece of Emperor Otto III and future mother of Casimir I the Restorer, took place. The conflicts with Germany ended in 1018 with the Peace of Bautzen on favorable terms for Bolesław. In the context of the 1018 Kiev expedition, Bolesław took over the western part of Red Ruthenia. In 1025, shortly before his death, Bolesław I finally succeeded in obtaining the papal permission to crown himself, and he became the first king of Poland.