On 15 June 1246, Frederick II, Duke of Austria, was killed in the Battle of the Leitha River against Béla IV of Hungary. His death ended reign of the Babenberg dynasty in Austria. The matter of his succession would result in years of disputes among various heirs. Wenceslaus' foreign policy became focused on acquiring Austria for the Přemyslid dynasty. Meanwhile, Emperor Frederick II managed to once again place Austria under direct imperial rule. However imperial governor Otto von Eberstein had to contend with an Austrian rebellion, preventing immediate benefits from the annexation of the Duchy.