In the winter of 1638, a sultan who had spent his youth restoring order to a crumbling empire stood in the trenches outside Baghdad, wearing the uniform of a common janissary and digging alongside his men. Murad IV had come to take back a city his empire had lost fourteen years earlier, and legend said only the sultan in person could take it. Forty days later, the city was his. The victory cost two grand viziers, tens of thousands of lives, and a massacre that stains the triumph to this day. Yet the peace that followed drew a border that, in broad terms, still separates Iran from Iraq and Turkey. This is the story of one campaign, one city, and one treaty.
The march: a city lost, and a sultan determined to take it back
Baghdad was far more than a prize of territory. It had been the capital of the Abbasid Caliphate, one of the great cities of the medieval Muslim world, and a symbol of imperial legitimacy. The Ottomans had held it since Suleyman the Magnificent took it in 1534, and the Peace of Amasya in 1555 had confirmed it as theirs. Then, in 1624, Shah Abbas the Great of Safavid Persia seized it while Istanbul was in chaos. The teenage Murad IV was on the throne, but real power lay with regents and factions, and the empire was drifting. Ottoman commanders tried to retake Baghdad in 1625 and again in 1630. Both attempts failed.
Murad grew up, and he grew ruthless. By the early 1630s he had crushed corruption, rebellion, and dissent at home with public executions and iron discipline. In 1635 he took personal command of the army for the first time and retook Revan, modern Yerevan, in the Caucasus. The triumph was short lived. In the spring of 1636, Shah Safi retook Revan and defeated an Ottoman army. Peace proposals came and went. Murad decided that only one thing would settle the eastern frontier: he would lead the army to Baghdad himself.
The army that set out in 1638 was enormous. According to the eyewitness account of Zarain Agha, the mobilization numbered 108,589 men, 35,000 infantry, in part janissaries, and 73,589 cavalry, with some 200 cannons. The march from Istanbul to Mesopotamia took months, across Anatolia and down the Euphrates valley. Along the way, Murad lost his first grand vizier of the campaign. Bayram Pasha died on 17 August 1638 while the army was still on the road. His replacement, Tayyar Mehmed Pasha, would not survive the siege either. By November, the army was outside the walls of Baghdad.
The walls: forty days against 211 towers
The Baghdad that awaited them was no easy target. The Safavid governor, Bektash Khan, had spent years repairing and strengthening the fortifications. The city walls stood about 25 metres tall and up to 10 metres thick, backed by earthen ramparts to absorb artillery fire and fronted by a wide, deep moat. The walls carried 211 fortified towers, 114 between the north and south gates and the rest running parallel to the Tigris. The garrison had been increased several times over, and the city held perhaps 40,000 infantry with 100 cannons of its own.
The siege began on 15 November 1638. Four main gates pierced the walls: the north gate, the dark south gate called Karanlik, the white gate called Ak, and the bridge gate called Kopru. Two Ottoman pashas were sent against the first two gates, but Tayyar Mehmed Pasha judged them too well fortified and chose to concentrate the attack on the Ak gate, which looked weaker. What followed was a grinding war of mines, artillery, and sallies. The Safavid defenders launched sorties of around 6,000 men at a time, struck hard, retreated behind the walls, and sent out a fresh 6,000. Each attack cost Ottoman lives.
Murad refused to command from a safe distance. Accounts describe him in the trenches, taking part in combat and gunnery, eating what his soldiers ate and sleeping on the ground beside them. The image was deliberate, and it was also real. A sultan who had restored his empire by force of will was now staking his reputation on a single city. As the days dragged into weeks, his patience wore thin. Towards the end of the siege, the impatient sultan pressed his grand vizier for a general assault. The assault was ordered. On 24 December, the day before the city fell, Tayyar Mehmed Pasha was shot dead in the final fighting. He was the third Ottoman grand vizier to die on a battlefield, and the second of this one campaign.
The fall: Christmas Day, 1638, and a massacre
On 25 December 1638, after forty days of siege, Baghdad fell. It was, by a strange coincidence of the calendar, the 116th anniversary of Suleyman’s capture of Rhodes. The Safavid commander Saru Khan was killed, reportedly in his own tent, as Yazidi troops under Ezidi Mirza broke through and turned the defence into a rout. The other Safavid commanders, Bektash Khan among them, were taken prisoner.
What followed darkens the whole victory. The defenders had been promised free passage to Persia, but fighting flared again around the Karanlik gate after the capture, and the Ottoman troops turned on the city. Sources report that more than 20,000 of the garrison were massacred, and some accounts put the number of soldiers killed as high as 30,000, with a further reported massacre of civilians, mostly women and children, after a powder magazine exploded accidentally and killed Ottoman troops. The civilian figure is less consistently reported than the military one, and the true totals cannot be fixed with certainty. What is certain is that the sack was severe, and that the triumph Murad celebrated was bought with a slaughter.
Murad had won his title. In Turkish history he is remembered as Bagdat Fatihi, the Conqueror of Baghdad. In the gardens of Topkapi Palace he later built two magnificent kiosks, one for his victory at Revan and one for Baghdad, and both still stand. But the cost of the victory was written into the campaign itself: two grand viziers dead, a battered army, and a city taken by storm rather than by surrender.
The border: the treaty that still shapes the map
The fighting ended, and the diplomats took over with unusual speed. The new grand vizier, Kemankes Kara Mustafa Pasha, opened peace talks with the Persian representative Saruhan within weeks of the capture. On 17 May 1639, the two empires signed the Treaty of Zuhab, also known as the Treaty of Kasr-i Shirin. Its terms were simple and durable. Iraq was permanently ceded to the Ottomans. Eastern Armenia, Dagestan, eastern Georgia, and the territory of the modern Azerbaijan Republic stayed Persian. The frontier was restored broadly to the lines of the 1555 Peace of Amasya, with Ottoman gains in western Georgia and western Armenia confirmed.
The treaty ended a century and a half of Ottoman Safavid warfare over Mesopotamia. Later wars came, but the treaties that followed them mostly ratified what Zuhab had fixed. In broad terms, the frontier drawn in 1639 remains the western border of Iran with Iraq and Turkey today. That is the siege’s true legacy. A forty day battle over one city produced a border that has outlasted both empires that drew it.
It was also Murad’s last campaign. He returned to Istanbul in triumph, but his health was failing, and he died in 1640, less than two years after Baghdad fell, at the age of only 27. He never led another army. The sultan who had remade his empire through discipline and war left behind one durable achievement: a settled eastern frontier, secured at a brutal price, that gave the Ottoman Empire a century of relative stability in the east.
The Siege of Baghdad in 1638 deserves to be remembered whole, not as a footnote to a longer war. It was a march of months, a siege of forty days, a storming that cost two viziers, a massacre that dishonours the victory, and a treaty that still shapes the map of the Middle East. Murad IV took the city he had sworn to retake, and then he was gone. The border he fixed remained.
Read also: Ottoman-Safavid Wars: The Rivalry That Drew the Middle East, https://playqudus.com/ottoman-safavid-wars/
2 thoughts on “The Siege of Baghdad 1638: Murad IV’s Last Campaign”