Treaty of Karlowitz
Erdődy died in 1693. However, his work was carried on by his successor Adam II. Batthyány. The wars against the Ottoman Empire throughout the region eventually led to the Treaty of Karlowitz in 1699.