On 29 August 1526 the forces of the Kingdom of Hungary led by King Louis II were defeated at the Battle of Mohács by Ottoman forces led by Sultan Suleiman the Magnificent.
Louis died in the battle which resulted in the end of the independent Kingdom of Hungary, as he died without an heir.
Both Hungary and Croatia became disputed territories with claims from both the Habsburg and Ottoman empires.
Ferdinand I from the House of Habsburg, brother of Holy Roman Emperor Charles V, married the sister of Louis II and was elected King by the nobles of both Hungary and Croatia.

The throne of Hungary became the subject of a dynastic dispute between Ferdinand and John Zápolya from Transylvania.
Suleiman had promised to make Zápolya the ruler of all Hungary.
Ferdinand set out to enforce his claim on Hungary and captured Buda from John Zápolya in 1527, only to relinquish his hold on it in 1529 when an Ottoman counter-attack stripped Ferdinand of all his territorial gains during 1527 and 1528.
The Siege of Vienna in 1529 was the first attempt by Suleiman the Magnificent to capture the Austrian capital.
This siege signalled the pinnacle of Ottoman power and the maximum extent of Ottoman expansion in central Europe.
On 29 August 1526 the forces of the Kingdom of Hungary led by King Louis II were defeated at the Battle of Mohács by Ottoman forces led by Sultan Suleiman the Magnificent. Louis died in the battle which resulted in the end of the independent Kingdom of Hungary, as he died without an heir. Both Hungary and Croatia became disputed territories with claims from both the Habsburg and Ottoman empires. Ferdinand I from the House of Habsburg, brother of Holy Roman Emperor Charles V, married the sister of Louis II and was elected King by the nobles of both Hungary and Croatia.
The throne of Hungary became the subject of a dynastic dispute between Ferdinand and John Zápolya from Transylvania. Suleiman had promised to make Zápolya the ruler of all Hungary. Ferdinand set out to enforce his claim on Hungary and captured Buda from John Zápolya in 1527, only to relinquish his hold on it in 1529 when an Ottoman counter-attack stripped Ferdinand of all his territorial gains during 1527 and 1528. The Siege of Vienna in 1529 was the first attempt by Suleiman the Magnificent to capture the Austrian capital. This siege signalled the pinnacle of Ottoman power and the maximum extent of Ottoman expansion in central Europe.
Siege of Szigetvár