Subsequently, the Ottomans resumed warfare with the Safavids in the Ottoman–Safavid War of 1578–90, conquering Georgia, Azerbaijan, and western Iran. In 1593 a frontier incident led to the renewal of warfare with Habsburg Austria in the Long War (1593–1606), in which neither side was able to achieve decisive victory. The Ottomans briefly held Győr (Yanık, 1594-8), but lost control of Novigrad (1594), exposing Buda to attacks from the north. By the end of the war the Ottomans had conquered the strategic fortresses of Eger (Eğri, 1596) and Nagykanizsa (Kanije, 1600). The Safavids took advantage of Ottoman distraction in the west to reverse all of their recent gains in the east in the Ottoman–Safavid War of 1603–18. After the turmoil of Osman II's regicide, the Safavids also seized Baghdad and much of Iraq in 1623, holding it until 1638, after which the border of the 1555 Treaty of Amasya was re-established. While they were occupied with the Safavid wars, an ongoing revolt of the local Zaydi Shi'ites of Yemen finally forced the Ottomans to abandon that province in 1636. The province of Lahsa in eastern Arabia also suffered from perpetual rebellion and tribal resistance to Ottoman rule, and was abandoned in 1670.