 Two years later he was defeated and killed in the Battle on the Marchfeld.Under Habsburg rule, Carniola became a frontier against Venice in the southwest, while its eastern border with Hungary remained stable.Rudolph enfeoffed Carniola to his sons Albert and Rudolf II in 1282 after a meeting in Augsburg, but instead he leased the margraviate to his ally Count Meinhard of Tyrol, whom he appointed Duke of Carinthia from 1286.