For almost one hundred and fifty years the Habsburg Monarchy and the Ottoman Empire were struggling for control in Hungary. After the unsuccessful second Siege of Vienna in 1683 the situation seemed to be convenient for the reconquest of Turkish Hungary.
The alliance of the Holy League against the Sultan was created in the spring of 1684 in which the Emperor, the Pope, Poland and Venice were involved. The Habsburgs focused their interests towards the Kingdom of Hungary from now on.
Until 1688, in a series of campaigns the Christian forces reconquered most of Hungary and in addition the Habsburgs achieved the title of the hereditary kings of St. Stephen´s Crown.