Hungary's catastrophic defeat in the Battle of Mohács in 1526 against the Turks led by Suleiman the Magnificent paved the way for the Ottoman occupation of Hungary. Suleiman's Siege of Buda (1541) was part of the Little War in Hungary between the Habsburgs and the Ottoman Empire. Three years after the Battle of Vienna in 1683, a pan-European multinational army besieged Buda Castle in the Battle of Buda (1686) for six weeks, finally recapturing it on the 12th attempt with heavy losses on both sides.