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

full_context: Document 1: List of battles involving the Ottoman Empire: The main battles in the history of the Ottoman Empire are shown below. The life span of the empire was more than six centuries, and the maximum territorial extent, at the zenith of its power in the second half of the 16th century, stretched from central Europe to the Persian Gulf and from the Caspian Sea to North Africa. The number of battles the empire fought is quite high. But here only the more important battles are listed. Among these, the battles fought in the 20th century (Turco-Italian War, Balkan Wars, and World War I ) as well as the sieges (like the sieges of Constantinople, Cairo, Belgrade, Bagdad, etc.) which most lists include as battles are not shown except in cases where the siege is followed by a battle (i.e. Vienna, Khotyn, Plevna).
Document 2: Ottoman–Habsburg wars: The Ottoman–Habsburg wars were fought from the 16th through the 18th centuries between the Ottoman Empire and the Habsburg (later Austrian) Empire, which was at times supported by the Holy Roman Empire, Kingdom of Hungary and Habsburg Spain. The wars were dominated by land campaigns in Hungary (including Transylvania and Vojvodina), Croatia and Central Serbia.
Document 3: Byzantine Empire: The Byzantine Empire, also referred to as the Eastern Roman Empire, was the continuation of the Roman Empire in the East during Late Antiquity and the Middle Ages, when its capital city was Constantinople (modern-day Istanbul, which had been founded as Byzantium). It survived the fragmentation and fall of the Western Roman Empire in the 5th century AD and continued to exist for an additional thousand years until it fell to the Ottoman Turks in 1453. During most of its existence, the empire was the most powerful economic, cultural, and military force in Europe. Both "Byzantine Empire" and "Eastern Roman Empire" are historiographical terms created after the end of the realm; its citizens continued to refer to their empire as the "Roman Empire" (Greek: Βασιλεία τῶν Ῥωμαίων , tr. "Basileia tôn Rhōmaiōn" ; Latin: "Imperium Romanum" ), or "Romania" (Ῥωμανία ), and to themselves as "Romans".
Document 4: Ottoman Empire: The Ottoman Empire (; Ottoman Turkish: دولت عليه عثمانیه‎‎ , "Devlet-i ʿAlīye-i ʿOsmānīye ", literally The Exalted Ottoman State; Modern Turkish: "Osmanlı İmparatorluğu " or "Osmanlı Devleti "; also historically known in Western Europe as the Turkish Empire, Ottoman Turkey or simply Turkey) was an empire founded at the end of the 13th century in northwestern Anatolia in the town of Söğüt (modern-day Bicelik Province) by the Oghuz Turkish tribal leader Osman. After 1354, the Ottomans crossed into Europe, and with the conquest of the Balkans, the Ottoman Beylik was transformed into a transcontinental empire. The Ottomans ended the Byzantine Empire with the 1453 conquest of Constantinople by Mehmed the Conqueror.
Document 5: Osman Fazli: Osman Fazli (Turkish: Atpazarı Osman Fazlı-ilahi or Kutb Osman Fazlı), was a Jelveti Sufi spiritual guide in 17th-century Ottoman Empire. He spent c.25 years teaching and preaching, and became head Sheikh of the order in Istanbul and led the studies, conversation, meditation, and dhikr. But when he was about 48 it was revealed to him that the Ottoman Empire would fall into ruin, and, although he was of reclusive temperament, felt the only way to care for its population was to be at the Sultan's court. There he was outspoken against many of the Grand Vizier's plans: that they would bring disaster and misfortune, and he was proven right. He spent some years at court but when he declared one Grand Vizier's plan as against the sharia and distorting the Quran, the only way the Vizier could silence him was with exile. Osman Fazli went into retreat but emerged with a different course of action: he was leading a band of Sufis towards the battlefront when he was arrested and exiled for good. Osman Fazli exemplifies the Jelveti way: that following union with Allah he returns and acts in the world. He is "hushyar" (awake).
Document 6: Battle of Vienna: The Battle of Vienna (German: "Schlacht am Kahlen Berge" or "Kahlenberg"; Polish: "bitwa pod Wiedniem" or "odsiecz wiedeńska" (The Relief of Vienna); Modern Turkish: "İkinci Viyana Kuşatması", Ottoman Turkish: "Beç Ḳalʿası Muḥāṣarası") took place at Kahlenberg Mountain near Vienna on 1683 after the imperial city had been besieged by the Ottoman Empire for two months. The battle was fought by the Habsburg Monarchy, the Polish–Lithuanian Commonwealth and the Holy Roman Empire, under the command of King John III Sobieski against the Ottomans and their vassal and tributary states. The battle marked the first time the Commonwealth and the Holy Roman Empire had cooperated militarily against the Ottomans, and it is often seen as a turning point in history, after which "the Ottoman Turks ceased to be a menace to the Christian world". In the ensuing war that lasted until 1699, the Ottomans lost almost all of Hungary to the Holy Roman Emperor Leopold I.
Document 7: Mehmed IV: Mehmed IV (Ottoman Turkish: محمد رابع "Meḥmed-i rābiʿ"; Modern Turkish: "IV. Mehmet"; also known as "Avcı Mehmed", Mehmed the Hunter; 2 January 1642 – 6 January 1693) was the Sultan of the Ottoman Empire from 1648 to 1687. He came to the throne at the age of six after his father was overthrown in a coup. Mehmed went on to become the second longest reigning sultan in Ottoman history. While the first and last years of his reign were characterized by military defeat and political instability, during his middle years he oversaw the revival of the empire's fortunes associated with the Köprülü era. Mehmed IV was known by contemporaries as a particularly pious ruler, and was referred to as gazi, or "holy warrior" for his role in the many conquests carried out during his long reign. Under his reign the empire reached the height of its territorial expansion in Europe. From a young age he developed a keen interest in hunting, for which he is known as "avcı" (translated as "the Hunter"). In 1687 Mehmed was overthrown by soldiers disenchanted by the course of the ongoing War of the Holy League. He subsequently retired to Edirne, where he resided until his natural death in 1693.
Document 8: Mamluk Sultanate (Cairo): The Mamluk Sultanate (Arabic: سلطنة المماليك‎ ‎ "Salṭanat al-Mamālīk") was a medieval realm spanning Egypt, the Levant, and Hejaz. It lasted from the overthrow of the Ayyubid dynasty until the Ottoman conquest of Egypt in 1517. Historians have traditionally broken the era of Mamlūk rule into two periods—one covering 1250–1382, the other, 1382–1517. Western historians call the former the "Baḥrī" period and the latter the "Burjī" due to the political dominance of the regimes known by these names during the respective eras. Contemporary Muslim historians refer to the same divisions as the "Turkish" and "Circassian" periods in order to stress the change in the ethnic origins of the majority of Mamlūks.
Document 9: Transformation of the Ottoman Empire: 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. 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.
Document 10: Austro-Turkish War (1663–64): The Austro-Turkish War (1663–1664) or fourth Austro-Turkish War was a short war between the Habsburg Monarchy and the Ottoman Empire. The Ottoman aim was to resume the advance in central Europe, conquer Vienna and subdue Austria. However, the Habsburg army under Raimondo Montecuccoli succeeded in halting the Ottoman army on its way to Vienna in the Battle of Saint Gotthard and destroy it, while another Austrian army won another victory at Léva. Despite these serious Ottoman defeats, the war ended for them with the rather favourable Peace of Vasvár.
Document 11: Battle of Zenta: 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.
Document 12: Peace of Vasvár: The Peace of Vasvár was a treaty between the Austrian Habsburg Monarchy and the Ottoman Empire which followed the Battle of Saint Gotthard of 1 August 1664 (near Mogersdorf, Burgenland), and concluded the Austro-Turkish War (1663-1664). It held for about 20 years, until 1683, during which border skirmishing escalated to a full-scale war and culminated with the Ottoman's siege of Vienna for the second time.
Document 13: Treaty of Karlowitz: 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. 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.
Document 14: Polish–Ottoman War (1683–99): Polish–Ottoman War (1683–1699), the Third Polish–Ottoman War or the War of the Holy League refers to the Polish side of the conflict otherwise known as the Great Turkish War. The conflict begun with a great Polish victory at the battle of Vienna in 1683, and ended with the Treaty of Karlowitz, restoring to the Polish–Lithuanian Commonwealth lands lost in the previous Polish-Ottoman War (the Polish–Ottoman War (1672–1676)). It was the last conflict between the Polish–Lithuanian Commonwealth and the Ottoman Empire, and despite the Polish victory, it marked the decline of power of not only the Ottoman Empire, but also of the Commonwealth, which would never again interfere in affairs outside of its declining borders.
Document 15: Battle of Mohács: The Battle of Mohács (] ; Hungarian: "Mohácsi csata" , Turkish: "Mohaç Muharebesi" ) was one of the most consequential battles in Central European history. It was fought on 29 August 1526 near Mohács, Kingdom of Hungary, between the forces of the Kingdom of Hungary, led by Louis II, and those of the Ottoman Empire, led by Suleiman the Magnificent. The Ottoman victory led to the partition of Hungary for several centuries between the Ottoman Empire, the Habsburg Monarchy, and the Principality of Transylvania. Further, the death of Louis II as he fled the battle marked the end of the Jagiellon dynasty in Hungary and Bohemia, whose dynastic claims passed to the House of Habsburg.
ground_truth: War of the Holy League