 Complete the following phrase:  This period of renewed assertiveness came to a calamitous end in 1683 when Grand Vizier Kara Mustafa Pasha led a huge army to attempt a second Ottoman siege of Vienna in the Great Turkish War of 16831699. The final assault being fatally delayed, the Ottoman forces were swept away by allied Habsburg, German, and Polish forces spearheaded by the Polish king John III Sobieski at the Battle of Vienna. The alliance of the Holy League pressed home the advantage of the defeat at Vienna, culminating in the Treaty of Karlowitz 26 January 1699, which ended the Great Turkish War. The Ottomans surrendered control of significant territories, many permanently. Mustafa II 16951703 led the counterattack of 16951696 against the Habsburgs in Hungary, but was undone at the disastrous defeat at 