Rudolf I of Germany
Joachim Gutkeled died while battling against the Babonići in April 1277. A month later, an assembly of the prelates, barons, noblemen, and Cumans declared Ladislaus to be of age. The estates of the realm also authorized the 15-year-old monarch to restore internal peace with all possible means. Ladislaus then invaded the Kőszegis's domains in Transdanubia, but could not defeat them. He met Rudolf I of Germany in Hainburg an der Donau on 11 November to confirm their alliance against Ottokar II of Bohemia.