The Klis Fortress (Croatian: "Tvrđava Klis" ) is a medieval fortress situated above a village bearing the same name, near the city of Split, in central Dalmatia, Croatia.
 From its origin as a small stronghold built by the ancient Illyrian tribe Dalmatae, becoming a royal castle that was the seat of many Croatian kings, to its final development as a large fortress during the Ottoman wars in Europe, Klis Fortress has guarded the frontier, being lost and re-conquered several times throughout its more-than-two-thousand-year-long history.
 Due to its location on a pass that separates the mountains Mosor and Kozjak, the fortress served as a major source of defense in Dalmatia, especially against the Ottoman advance, and has been a key crossroad between the Mediterranean belt and the Balkan rear.
Abdülmecid I (Ottoman Turkish: عبد المجيد اول "‘Abdü’l-Mecīd-i evvel"; 23/25 April 182325 June 1861), also known as Abdulmejid and similar spellings, was the 31st Sultan of the Ottoman Empire and succeeded his father Mahmud II on 2 July 1839.
 His reign was notable for the rise of nationalist movements within the empire's territories.
 Abdulmejid wanted to encourage Ottomanism among the secessionist subject nations and stop the rise of nationalist movements within the empire, but failed to succeed despite trying to integrate non-Muslims and non-Turks more thoroughly into Ottoman society with new laws and reforms.
 He tried to forge alliances with the major powers of Western Europe, namely the United Kingdom and France, who fought alongside the Ottoman Empire in the Crimean War against Russia.
 In the following Congress of Paris on 30 March 1856, the Ottoman Empire was officially included among the European family of nations.
 Abdulmejid's biggest achievement was the announcement and application of the Tanzimat "(reorganization)" reforms which were prepared by his father and effectively started the modernization of the Ottoman Empire in 1839.
 For this achievement, one of the Imperial anthems of the Ottoman Empire, the March of Abdulmejid, was named after him.
The Sanjak of Klis (Turkish: "Kilis Sancağı" ) was a sanjak of the Ottoman Empire which seat was in the Fortress of Klis in Klis (modern-day Croatia) till capture by Republic of Venice in 1648, laterly in Livno between 1648-1699.
The Ottoman–Safavid War of 1623–1639 was the last of a series of conflicts fought between the Ottoman Empire and Safavid Persia, then the two major powers of the Near East, over control of Mesopotamia.
 After initial Persian success in recapturing Baghdad and most of modern Iraq, having lost it for 90 years, the war became a stalemate as the Persians were unable to press further into the Ottoman Empire, and the Ottomans themselves were distracted by wars in Europe and weakened by internal turmoil.
 Eventually, the Ottomans were able to recover Baghdad, taking heavy losses in the final siege, and the signing of the Treaty of Zuhab ended the war in an Ottoman victory.
 Roughly speaking, the treaty restored the borders of 1555, with the Safavids keeping Dagestan, eastern Georgia, Eastern Armenia, and the present-day Azerbaijan Republic, while western Georgia and Western Armenia decisively came under Ottoman rule.
 The eastern part of Samtskhe (Meskheti) was irrevocably lost to the Ottomans as well as Mesopotamia.
 Despite parts of Mesopotamia were briefly retaken by the Iranians later on in history, notably during the reigns of Nader Shah (1736-1747) and Karim Khan Zand (1751-1779), it remained thenceforth in Ottoman hands until the aftermath of World War I.
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.
The Battle of Brest (Croatian: "Bitka kod Bresta" ) was fought on 19 July 1592 between the Ottoman forces of Hasan Pasha Predojević, Beglerbeg of Bosnia, and the Germanic and Croatian forces led by Thomas Erdődy, Ban of Croatia.
 The battle was a part of the Croatian–Ottoman wars and Ottoman–Habsburg wars between the Ottoman Empire and the Habsburg Monarchy.
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.
The Siege of Buda (4 May to 21 August 1541) ended with the capture of the city of Buda, Hungary by the Ottoman Empire, leading to 150 years of Ottoman control of Hungary.
 The siege, part of the Little War in Hungary, was one of the most important Ottoman victories over the Habsburg Monarchy during Ottoman–Habsburg wars (16th to 18th century) in Hungary and the Balkans.
The Siege of Klis or Battle of Klis (Croatian: "Opsada Klisa "or" Bitka kod Klisa" , Turkish: "Klise Kuşatması" ) was a siege of Klis Fortress in the Kingdom of Croatia within Habsburg Monarchy.
 The siege of the fortress, which lasted for more than two decades, and the final battle near Klis in 1537, were fought as a part of the Ottoman–Habsburg wars between the defending Croatian-Habsburg forces under the leadership of Croatian feudal lord Petar Kružić, and the attacking Ottoman army under the leadership of the Ottoman general Murat-beg Tardić.
The Battle of Slunj (Croatian: "Bitka kod Slunja" ) was fought on 26 October 1584 between the Ottoman forces of the Bosnian Beglerbeg, Ferhad Pasha Sokolović, and Germanic and Croatian forces led by Jobst Joseph von Thurn and Thomas Erdődy, the Ban of Croatia, that ambushed the Ottoman army near the town of Slunj.
 The battle was a part of the Croatian–Ottoman wars and Ottoman–Habsburg wars between the Ottoman Empire and the Habsburg Monarchy.
 Ottoman troops were estimated at between 8-10,000 men, and the army of Thurn and Erdödy consisted of 1,330 cavalry and 700 infantry.
 The battle resulted in a crushing defeat for the Ottoman forces.

Question: The Siege of Klis was fought as part of what wars between the Ottoman Empire and the Habsburg?
Answer: The Ottoman–Habsburg wars