The Siege and Battle of Vienna took place at Kahlenberg Mountain near Vienna on 12 September 1683 after the city had been besieged by the Ottoman Empire for two months. The battle was fought by the Holy Roman Empire (led by the Habsburg monarchy) and the Polish–Lithuanian Commonwealth, both under the command of Polish King John III Sobieski, against the Ottomans and their vassal and tributary states. The battle marked the first time the Commonwealth and the Holy Roman Empire had cooperated militarily against the Ottomans. The defeat was a turning point for Ottoman expansion into Europe, after which they would gain no further ground. In the ensuing war that lasted until 1699, the Ottomans would cede most of Ottoman Hungary to Leopold I, Holy Roman Emperor.
The battle was won by the combined forces of the Holy Roman Empire and the Polish–Lithuanian Commonwealth, the latter represented only by the forces of the Crown of the Kingdom of Poland (the march of the Lithuanian army was delayed, and they reached Vienna after it had been relieved). The Viennese garrison was led by Feldzeugmeister of the Holy Roman Imperial Army Ernst Rüdiger Graf von Starhemberg, an Austrian subject of Holy Roman Emperor Leopold I. The overall command was held by the senior leader, the King of Poland, John III Sobieski, who led the relief forces.