After the 1278 Battle on the Marchfeld, King Rudolf wished to make peace with the Bohemian kings, and to do this he needed to marry at least one of his daughters into the royal Přemyslid dynasty. Hedwig's younger sister Judith was married to King Wenceslaus II of Bohemia, son of the late King Ottokar II, and Hedwig herself was married to Margrave Otto VI (called "the Small") of Brandenburg, whose elder brother Otto V ("the Tall") acted as King Wenceslaus' guardian. Hedwig and Otto VI were married in 1279 at the Habsburg residence in Vienna, Austria.