 However, attempts to regain further territory were unsuccessful, and following defeat in the Battle of Zenta in 1697 they were forced to recognize their inability to reconquer the lost Hungarian lands.In 1699, under the terms of the resulting Treaty of Karlowitz, the Ottomans ceded all of Hungary and Transylvania to the Habsburgs, with the exception of the Banat region.Morea was transferred to Venice, while Podolia was returned to Poland-Lithuania.