John Zápolya
Later, Matthias Corvinus was elected by the nobles of the Kingdom, being the first Hungarian monarch who descended from an aristocratic family, and not from a royal family that inherited the title. The same happened decades later with John Zápolya, who was elected in 1526 after the death of Louis II in the battle of Mohács.