Early Modern // 1623-1639
Ottoman–Safavid War
The Ottoman–Safavid War of 1623–1639 was a conflict fought between the Ottoman Empire and Safavid Iran, then the two major powers of Western Asia, over control of Mesopotamia.
Tactical Map#
1 battles plotted
LOADING MAP TELEMETRY…
War Tempo#
Battle cadence by year
Battles per year
1 battles
Causes#
The immediate occasion for the war was the seizure of Baghdad in 1624 by Shah Abbas I of Safavid Iran, who exploited a period of acute Ottoman political instability to recover the city that the Ottomans had held since Suleiman the Magnificent's campaign of 1534[1]. That opportunistic strike was less a sudden improvisation than the culmination of a century-long contest between the two empires over the Mesopotamian corridor — a contest driven by dynastic ambition, religious antagonism, and the strategic logic of river valleys that neither power could afford to leave in the other's hands.
The structural contest between Ottoman and Safavid power was inseparable from the Sunni–Shia divide that each dynasty had come to embody institutionally. The Safavids had made Twelver Shia Islam the official religion of Iran in the early sixteenth century, and the Ottoman sultans, as self-styled protectors of Sunni Islam and claimants to the caliphate, treated Safavid religious authority as a standing provocation[1]. Mesopotamia, containing the Shia shrine cities of Najaf and Karbala, was not merely strategically valuable but carried enormous confessional significance. Control of those shrines was a source of legitimacy that amplified every territorial dispute with theological urgency.
Geopolitically, Mesopotamia was the connective tissue between the Ottoman Anatolian heartland and the Persian Gulf, and its rivers — the Tigris and Euphrates — defined the most defensible frontier either empire could hold. The previous Ottoman–Safavid wars of the sixteenth century had repeatedly pivoted on Baghdad: the Ottomans took it in 1534, lost it briefly in 1624, and the entire sixteen-year war that followed was, at its core, an effort to recover it. The Capture of Baghdad in 1638 and the subsequent Treaty of Zuhab, which fixed a boundary broadly respected for nearly two centuries, confirmed that both powers recognized the city as the irreducible object of the contest[1].
The proximate opportunity for Abbas's 1624 offensive was the condition of the Ottoman state itself. The empire had emerged from more than a decade of internal crisis — the Celali rebellions had devastated Anatolia, janissary factionalism had destabilized the palace, and a rapid succession of sultans had weakened central authority. Abbas, who had spent the preceding decades reforming the Safavid military with the assistance of English advisers and reorganizing his army around a disciplined corps of slave soldiers, was well positioned to exploit Ottoman distraction[1]. The power asymmetry was temporary, but it was sufficient to reopen the Mesopotamian question at a moment when the Ottomans could not immediately respond in force.
The war thus combined a concrete territorial grievance — the reversal of the Ottoman position in Mesopotamia established a century earlier — with the structural incompatibility of two imperial systems each claiming universal religious authority over Western Asia. Neither side could accept a rival's permanent hold on the Shia shrine cities, and neither could concede the strategic depth that the Tigris valley provided. Those interlocking imperatives made a prolonged contest almost unavoidable once the balance of military capacity shifted far enough in the Safavid direction to make a challenge credible[1].
Consequences#
The war ended with the Ottoman recapture of Baghdad in 1638 and was formally concluded by the Treaty of Zuhab, signed in May 1639[1]. The settlement established a frontier between the two empires that proved remarkably durable — the most stable boundary the Ottoman and Safavid states ever achieved — and assigned Mesopotamia, including Baghdad, definitively to Ottoman sovereignty, while Safavid Iran retained Yerevan and most of the Caucasian territories it had controlled. Neither power was left strong enough nor sufficiently motivated to resume large-scale hostilities, and the 1639 line served as a rough template for subsequent Ottoman-Iranian delimitation well into the nineteenth century[1].
For the Ottoman Empire, the conclusion of the war brought an end to more than a decade of draining campaigning in the east at a time when the central government was also managing severe internal instability. The recovery of Baghdad, lost to Shah Abbas I in 1624, carried considerable symbolic weight: the city housed the tomb of the Sunni jurist Abu Hanifa and represented the Ottoman claim to leadership of Sunni Islam against the Twelver Shia polity of the Safavids. Grand Vizier Kara Mustafa Pasha and, more consequentially, Sultan Murad IV, who commanded the 1638 campaign in person, derived substantial prestige from the victory[1]. That personal authority had been used to suppress the Janissary factions and provincial rebels who had destabilized earlier sultans, and the successful prosecution of the war reinforced — temporarily — the capacity of the central Ottoman administration to project military power.
For Safavid Iran, the Treaty of Zuhab registered a strategic retreat from the ambitious expansion Shah Abbas I had achieved in the first years of the war. The Safavid state had taken Baghdad in 1624 and held it for fourteen years, but the death of Abbas I in 1629 inaugurated a succession of weaker rulers unable to sustain the military and administrative effort the conquest demanded[1]. The loss of Mesopotamia reduced Safavid revenues and removed the empire from direct control of the principal overland trade routes linking Iran to the Levant. Internally, the war's drain on resources contributed to the fiscal and political pressures that would accumulate across the later seventeenth century and feed into the dynastic decline preceding the Afghan invasion of 1722.
The geopolitical consequences extended to the populations caught between the two empires. Mesopotamia's predominantly Arab and Kurdish population, and its mixed Sunni-Shia religious landscape, was periodically subjected to the destruction that accompanied each change of control. The Shia shrine cities of Najaf and Karbala, located in the region, remained under Ottoman administration after 1639 despite their centrality to Safavid religious identity — a source of ongoing tension in pilgrimage rights and Ottoman treatment of Shia subjects. The war also accelerated the depopulation of some frontier zones and disrupted the agricultural systems of the Tigris-Euphrates basin, effects that outlasted the formal peace.
What the Treaty of Zuhab did not resolve was the underlying sectarian and dynastic rivalry between the two states. The boundary settlement addressed territorial control but left intact the competing Ottoman and Safavid claims to Islamic legitimacy and the rights of their respective religious communities within each other's borders. Subsequent Ottoman-Iranian conflicts in the eighteenth century — reopened as Safavid power collapsed and successor states contested the same Caucasian and Mesopotamian territories — demonstrated that the 1639 settlement had stabilized a frontier without reconciling the structural antagonism that had produced more than a century of intermittent warfare between the two empires[1].
Campaigns#
0 operational sequences
Battles#
1 catalogued engagements
- Capture of Baghdad (1638)
November 15, 1638
The siege of Baghdad in November 1638 marked the re-establishment of Ottoman control over Iraq after a period of Safavid rule, making it the decisive engagement of the Ottoman–Safavid War of 1623–1639. The Ottoman force, numbering over 108,000 under Sultan Murad IV and his grand viziers, confronted a Safavid garrison of 40,000 under Bektash Khan Gorji; Safavid casualties reached 20,000. The recapture reversed the Safavid seizure of Baghdad that had precipitated the war and settled, at least for this phase of the long Ottoman–Safavid rivalry, the question of which power would hold Iraq. The fall of the city effectively brought the 1623–1639 war to its conclusion, restoring an Ottoman position in Mesopotamia that would be formalized in the subsequent peace settlement.
Famous commanders of Ottoman–Safavid War
5 shown
Bektash Khan Gorji
1 battle led
Ezidi Mirza
1 battle led
Grand Vizier Kemankeş Kara Mustafa Pasha
1 battle led
Grand Vizier Tayyar Mehmed Pasha
1 battle led
Sultan Murad IV
1 battle led
Ranked by Σ battle intensity across battles led in scope. Strategic leaders (chiefs of state / supreme commanders) pinned to the top.
Other wars in this era
Early Modern
WAR· 1503-1505
War of the Succession of Landshut
WAR· 1507-1572
Crimean-Russian Wars
The Russo-Crimean Wars were fought between the forces of the Tsardom of Russia and the Crimean Khanate during the 16th century over the region around the Volga River.
WAR· 1508-1516
War of the League of Cambrai
WAR· 1514-1823
Ottoman–Persian Wars