Stephen I of Hungary has allied himself with his brother-in-law, the Emperor Henry II, against Prince Boleslaw I of Poland, who has waged three wars since 1004 with the emperor over title to Bohemia and other Slavic lands.
Stephen has sent troops to the emperor's army, and in the Peace of Bautzen, in 1018, the Polish prince has to hand over the occupied territories to Stephen.
Under the Treaty of Bautzen, signed on January 30, Boleslaw wins recognition of Lusatia, Moravia, and Misnia (Meissen) as parts of Poland.
Both parties also exchange hostages.
Henry does not attend, nor will he renew the campaigns against Boleslaw hereafter.
The peace is confirmed by the marriage of Oda of Meissen, daughter of Eckard I, to Boleslaw.
It is Boleslaw’s fourth marriage; Regelind, a daughter from his previous marriage with Emnilda of Lusatia, is already married to Oda's brother Herman (Hermann) I of Meissen.
Henry also obliges himself to support Boleslaw with three hundred knights in the Polish ruler's expedition to Kiev in the same year.
Shortly afterwards, Stephen sends troops to help Boleslaw I in his campaign against Kievan Rus'.