Rudolf I of Germany
Ladislaus was still a prisoner when his father Stephen V died on 6 August 1272. During his minority, many groupings of barons — primarily the Abas, Csáks, Kőszegis, and Gutkeleds — fought against each other for supreme power. Ladislaus was declared to be of age at an assembly of the prelates, barons, noblemen, and Cumans in 1277. He allied himself with Rudolf I of Germany against Ottokar II of Bohemia. His forces had a preeminent role in Rudolf's victory over Ottokar in the Battle on the Marchfeld on 26 August 1278.