 Being the last male member of the House of Árpád, Andrew was elected king after the death of King Ladislaus IV in 1290. He was the first Hungarian monarch to issue a coronation diploma confirming the privileges of the noblemen and the clergy. At least three pretenders — Albert of Austria, Mary of Hungary, and an adventurer — challenged his claim to the throne. Andrew expelled the adventurer from Hungary and forced Albert of Austria to conclude a peace within a year, but Mary of Hungary and her descendants did not renounce their claim. The Hungarian bishops and Andrew's maternal family from Venice were his principal supporters, but the leading Croatian and Slavonian lords were opposed to his rule.
