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

Dhimitër Jonima (?  – 1409) was an Albanian nobleman from the Jonima family.  Together with other Albanian noblemen he is mentioned as a participant of the Battle of Kosovo in 1389.  He suffered another defeat from the Ottoman Empire shortly after the Ottoman forces captured Shkodër in 1393.  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.  In 1402, as an Ottoman vassal, together with other Albanian noblemen, he fought alongside Bayezid I's forces in the Battle of Ankara.  After the Ottoman defeat, he accepted the suzerainty of the Venetian Republic as a vassal of Koja Zaharia.  He is last mentioned in the sources in 1409 and is supposed to have died the same year.  After his death, Gjon Kastrioti took possession of the Jonima dominions, which became a part of the Principality of Kastrioti.  Other members of the Jonima family are mentioned in Shkodër region later, however they never reached the fame of Dhimitër Jonima.  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. <SEP> 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.  In a surprise attack, Habsburg Imperial forces routed the Ottoman army which was crossing the river.  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.  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>  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. 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. <SEP>  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.  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.  Yet despite these crises the empire remained strong both politically and economically, and continued to adapt to the challenges of a changing world.  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. 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.