The original Christian Hungarian population did not feel secure during the Ottoman conquest, their numbers significantly shrank in the next decades, because they fled to the Habsburg ruled Royal Hungary.
With the aid of Pope Innocent XI, the Holy League was formed on 5 March 1684, with King Jan Sobieski of Poland, Emperor Leopold I and the Republic of Venice agreeing to an alliance against the Turks.
However, the Holy League's first attempt on Buda ended in defeat, the Austrians and their allies having to withdraw with great losses after 108 days of besieging the Ottoman-held city.
This time the Holy League's army was much larger, consisting of 65,000-100,000 men,[2] including German, Hungarian, Croat, Dutch, English, Spanish, Czech, Italian, French, Burgundian, Danish and Swedish soldiers, and other Europeans as volunteers, artillerymen and officers.
Abdi Pasha's defensive efforts are referred to as "heroic" by Tony Jaques in his book "The Dictionary of Battles and Sieges".
Against the Turks, because of their long and persistent resistance, which had cost an amazing quantity of its comrades their lives, they spared neither age nor sex.
The Elector of Bavaria and the Duke of Lorraine, disturbed by knowing of men killed, and women raped, gave good orders that the butchery must stop, and the lives of over 2000 Turks were saved.
[citation needed]Over 3,000 Turks were killed in the slaughter perpetrated by imperial troops, and the violence was directed not only against the Muslims, but likewise against the Jewish population of Buda.
[3] The mosques and minarets of Buda were destroyed and three synagogues were burned, along with numerous valuable books, by the Army of the Holy Roman Empire.
In addition, the Hungarian parliament committed itself to crown the Habsburg successor to the throne still during his father's lifetime as king of Hungary.
Today, a monument in Budapest marks the spot where Spanish troops breached the walls to re-take the city from the Ottomans.