Relations with Poland
Duke Bolesław I of Poland of the Piast dynasty repeatedly clashed with Emperor Henry II during the German–Polish Wars of 1002 to 1018. In January 1018, Henry II and Bolesław I signed the peace treaty of Bautzen, that settled the permanent coexistence of the Empire and Poland as Bolesław recognized Henry II as his nominal feudal lord. In return, Henry II generously invested Bolesław with territories on the Empire's eastern border. In order to reinforce his dynastic bonds with the German nobility, Bolesław, a widower, married Oda of Meissen, daughter of the Saxon margrave Eckard I of Meissen. The Empire and Poland enjoyed peace for the remainder of Henry's reign. However, Bolesław then seized the opportunity presented by Henry's death in 1024 and the subsequent interregnum to consolidate his own power, crowning himself King on Easter, 25 April 1025. Bolesław was thus the first Polish king, as his predecessors only held the ducal title of the political entity, called Civitas Schinesghe at the time, that had only a few decades ago revealed itself to the world and the Holy See in Rome. Bolesław died within two months of his coronation, most likely due to an illness. His son, Mieszko II Lambert, succeeded him as King, crowned on Christmas, 1025. Upon assuming the Polish throne, Mieszko expelled his older half-brother Bezprym and his younger brother Otto Bolesławowic. Otto went west to seek Conrad II's protection.
Conrad considered the assumption of the title "king" by Mieszko an act of war and a disregard of his imperial authority, but had to address domestic issues before dealing with Mieszko. In 1026 Conrad II marched into Italy to consolidate imperial authority south of the Alps and to claim the imperial crown from the Pope. In his absence, Duke Ernest II of Swabia, Conrad the Younger and Duke Frederick II of Upper Lorraine rebelled against his authority.
The rebels sought the support of Mieszko, which the Polish king granted, promising to take military action against Conrad. Conrad returned to Germany in mid-1027, putting an end to the rebellion before Mieszko could deploy his forces. In preparation for his own invasion of Poland, Conrad developed a closer relationship with King Cnut of England and Denmark (whose kingdom lay beyond the Empire's northern border). Cnut accompanied Conrad at his imperial coronation in 1027, and Conrad granted Cnut authority over the March of Schleswig, the land bridge between Denmark and Germany.
Fearing the possibility of a joint German-Danish attack, in 1028 Mieszko took the initiative and invaded Lusatia in the eastern Empire and occupied the territories of the Lutician Federation, where West Slavic Polabian tribes had settled and represented the majority of the population since the 10th century after centuries of steady immigration. Slavs had long been the targets of imperial military campaigns, particularly for the punishment and subjugation of pagan tribes. Emperor Otto I's lieutenants, Herman Billung and Gero, harassed Slavic settlers beginning in the 940s. As part of the Slavic revolt of 983, the Lutici rebelled against the Empire. In the ensuing war (983–995), the Lutici succeeded in reclaiming their independence and gained control of the Billung March and Northern March from the Empire. Though Emperor Otto III allied with Duke Bolesław I of Poland to reintegrate them into the Empire, Otto III's death ended the friendly relationship between Poland and the Empire. Instead, Bolesław competed with Otto III's successor, Emperor Henry II, for dominion over the Lutici, causing Henry II to ally the Empire with the Lutici against Poland. Under the Peace of Bautzen in 1018, all three parties remained in uneasy peace, with Poland allowed to retain the Margraviate of Meissen. Of the eastern marches, the Empire only kept the March of Lusatia. Mieszko's 1028 invasion ended the peace. The Lutici sent ambassadors to seek Conrad's protection against Mieszko, which Conrad granted and renewed the German-Lutician alliance.
Conrad, seeking to relieve pressure on the Lutici, counter-invaded Poland in 1029 and besieged Bautzen in the Margraviate of Meissen. However, faced with a potential invasion by Hungary and the failure of the Lutici to provide their promised contingent of troops, Conrad retreated. In 1030, Poland secured an alliance with Hungary, with Stephen I invading Bavaria while Mieszko invaded Saxony. Conrad responded by allying with Yaroslav the Wise, Grand Prince of Kiev, who captured Red Ruthenia, on Poland's eastern border. In 1031, Conrad concluded a peace treaty with Hungary by ceding the lands between the rivers Lajta and Fischa to Hungarian control. Freed from the threat of Hungarian attack, the Emperor was able to focus his attention on Poland. Marching on Mieszko in autumn 1031, Conrad again besieged Bautzen. Mieszko was crushed by the Holy Roman and Kievan invaders and his exiled brother Bezprym's rebellion. He surrendered to Conrad in the fall of 1031. The Treaty of Merseburg provided that Mieszko return the Margraviate of Meissen and the March of Lusatia to the Empire.
Soon after Mieszko had concluded peace with the Empire, he was deposed by Bezprym, who had been in exile in the Kievan Rus' since 1025. Bezprym, with Conrad's approval, had persuaded the Kievan Grand Prince Yaroslav I the Wise to invade Poland and install Bezprym as sovereign. Mieszko fled to Bohemia where he was imprisoned and castrated by Duke Oldřich in retribution for Mieszko's father Bolesław's blinding of Duke Boleslaus III, Oldřich's brother, thirty years earlier. Shortly after taking power, Bezprym sent the Polish regalia to Conrad, officially renouncing the title "king" in favour of the traditional title "duke" and accepting the overlordship of the Empire over Poland. The royal regalia were delivered by Mieszko II's wife, Richeza of Lotharingia.
Bezprym's reign, however, was short. His extreme cruelty caused his half-brother Otto Bolesławowic to conspire against him. Bezprym's own men murdered him in the spring of 1032, which created a power vacuum in Poland. Conrad responded by holding a diet at Merseburg in 1033 to address the situation. Conrad's wife, Empress Gisela of Swabia, interceded on Mieszko's behalf and requested he be freed from imprisonment in Bohemia and allowed to regain the Polish throne. Under the terms of the Treaty of Merseburg, Conrad divided Poland among Mieszko, Otto and Detric, another half-brother. Mieszko was allowed to retain the title of Duke and nominal authority over all of Poland. Now that the Empire had a strong central leader, the treaty significantly increased the Empire's influence over Poland.
The regulation was short-lived as in 1033 Otto was killed by one of his own men, and Mieszko II took over his domains. Shortly after, Mieszko expelled Detric and reunited the whole country. Though Mieszko regained his territory, he still was opposed by the nobility and his own subjects. Mieszko did not adopt Bezprym's renunciation of the Polish crown and continued to style himself as King. Mieszko II died soon after in 1034, and upon his death, a Pagan reaction in Poland erupted. Subsequently, his wife Richeza and son Casimir I fled to the Empire.