However, Grand Vizier Kara Mustafa Pasha carelessly opened up the empire to attack when he attacked Vienna. The Austrians, Poles, Russians, and Venetians all attacked the Ottomans back in the Great Turkish War. Austria and Poland attacked the overstretched Turks in Hungary and Transylvania while Russia hammered Crimea. Venice settled to attack Greece. The warring sides signed the Treaty of Karlowitz, ceding Hungary and Transylvania to Austria, Podolia (southern Ukraine) to Poland, Morea (southern Greece) to Venice, and Azov (a Black Sea port) to Russia. 