Question: Which war was ended with the Ottoman's defeat at the Battle of Zenta?

<P0-S0> The Transformation of the Ottoman Empire, also known as the Era of Transformation, constitutes a period in the history of the Ottoman Empire from  1550 to  1700 , spanning roughly from the end of the reign of Suleiman the Magnificent to the Treaty of Karlowitz at the conclusion of the War of the Holy League. <P0-S1>  This period was characterized by numerous dramatic political, social, and economic changes, which resulted in the empire shifting from an expansionist, patrimonial state into a bureaucratic empire based on an ideology of upholding justice and acting as the protector of Sunni Islam. <P0-S2>  These changes were in large part prompted by a series of political and economic crises in the late sixteenth and early seventeenth centuries, resulting from inflation, warfare, and political factionalism. <P0-S3>  Yet despite these crises the empire remained strong both politically and economically, and continued to adapt to the challenges of a changing world. <P0-S4>  The seventeenth century was once characterized as a period of decline for the Ottomans, but since the 1980s historians of the Ottoman Empire have increasingly rejected that characterization, identifying it instead as a period of crisis, adaptation, and transformation. <SEP> <P1-S0> The Treaty of Karlowitz was signed on 26 January 1699 in Sremski Karlovci, in modern-day Serbia, concluding the Austro-Ottoman War of 1683–97 in which the Ottoman side had been defeated at the Battle of Zenta. <P1-S1>  It marks the end of Ottoman control in much of Central Europe, with their first major territorial losses after centuries of expansion, and established the Habsburg Monarchy as the dominant power in Central and southeast Europe. <SEP> <P2-S0> The Battle of Zenta or Battle of Senta, fought on 11 September 1697 just south of Zenta (Serbian: Senta; then part of the Ottoman Empire; today in Serbia), on the east side of the Tisa river, was a major engagement in the Great Turkish War (1683–1699) and one of the most decisive defeats in Ottoman history. <P2-S1>  In a surprise attack, Habsburg Imperial forces routed the Ottoman army which was crossing the river. <P2-S2>  At the cost of a few hundred losses, the Habsburg forces inflicted thousands of casualties on the Ottomans, dispersed the remainder and captured the Ottoman treasure. <P2-S3>  As an immediate consequence, the Ottoman Empire lost control over Banat, while in the long run, the Habsburg victory at Zenta was the last decisive step to force the Ottoman Empire into the Treaty of Karlowitz (1699), ending the Ottoman control of large parts of Central Europe. <SEP> <P3-S0> Dhimitër Jonima (? <P3-S1>  – 1409) was an Albanian nobleman from the Jonima family. <P3-S2>  Together with other Albanian noblemen he is mentioned as a participant of the Battle of Kosovo in 1389. <P3-S3>  He suffered another defeat from the Ottoman Empire shortly after the Ottoman forces captured Shkodër in 1393. <P3-S4>  Then he acted as a mediator between them and Marco Barbadigo, the husband of Helena Thopia who was at that period in possession of Krujë castle. <P3-S5>  In 1402, as an Ottoman vassal, together with other Albanian noblemen, he fought alongside Bayezid I's forces in the Battle of Ankara. <P3-S6>  After the Ottoman defeat, he accepted the suzerainty of the Venetian Republic as a vassal of Koja Zaharia. <P3-S7>  He is last mentioned in the sources in 1409 and is supposed to have died the same year. <P3-S8>  After his death, Gjon Kastrioti took possession of the Jonima dominions, which became a part of the Principality of Kastrioti. <P3-S9>  Other members of the Jonima family are mentioned in Shkodër region later, however they never reached the fame of Dhimitër Jonima. <P3-S10>  Even long after his death, in 1431, upon the defeat of Gjon Kastrioti by Ottoman forces, the lands taken from him and once belonging to Jonima family, were registered by Ottomans as the vilayet of Dhimitër Jonima.