After King Louis II of Hungary was killed at the Battle of Mohács in 1526, his widow Queen Mary of Austria fled to her brother the Archduke of Austria, Ferdinand I. Ferdinand's claim to the throne of Hungary was further strengthened by his marriage to Anne, the sister of King Louis II and the only family member claimant to the throne of the shattered Kingdom. Consequently, Ferdinand I was elected King of Bohemia, and at the Diet of Pozsony he and his wife were elected King and Queen of Hungary. This clashed with the Turkish objective of placing the puppet John Szapolyai on the throne, thus setting the stage for a conflict between the two powers.