In 1687, the Ottomans raised new armies and marched north once more. However, Duke Charles intercepted the Turks at the Second Battle of Mohács and avenged the loss inflicted on the last Hungarian King over 160 years ago by Suleiman the Magnificent. The Ottomans continued to resist the southward-pressing Austrians, denying them an opportunity to negotiate from a position of strength. Only when the Ottomans suffered yet another disastrous battle at the crossing at Zenta in 1697 did the Ottomans sue for peace; the resulting treaty of Karlowitz in 1699 secured territories, the rest of Hungary and overlordship of Transylvania for the Austrians.