Rákóczi's War of Independence By benedekcsanyi Jan 26, 1699 The Treaty of Karlowitz The Treaty of Karlowitz ends the Ottoman Empire's control of Hungary and puts the territory under Habsburg rule.