Treaty of Karlowitz
Their attempt succeeded and the Ottomans were held there until Slavonia was returned to the Habsburg rule following Great Turkish War and Treaty of Karlowitz in 1699.