WIPIVERSE All articles

Siege of Shamakhi (1607)

The Siege of Shamakhi (1607) was a military engagement during the Ottoman–Safavid War (1603–1612), resulting in a Safavid victory and the return of Shamakhi to Iranian rule after 28 years of Ottoman control.

Date: January 9 – June 26, 1607
Location: Shamakhi, Shirvan (present-day Azerbaijan)
Result: Safavid victory
Territorial changes: Shamakhi, Baku, and Derbent surrendered to the Safavid army, bringing Azerbaijan and Dagestan fully under Safavid control.

Background

Following a series of successful campaigns between 1603 and 1606, Shah Abbas I of Safavid Iran had retaken much of western Iran, Armenia, and Georgia. After the Ottoman army suffered a major defeat at the Battle of Urmia (1605) and the Ottoman expeditionary force under Deli Ferhat Pasha dispersed in Konya due to indiscipline, the new Grand Vizier Kuyucu Murat Pasha prioritized suppressing the Celali rebellions in Anatolia over an immediate campaign against Iran. This left Shamakhi Fortress—the last Ottoman stronghold in the southern Caucasus—isolated, approximately 600 kilometers from Ottoman territory and with no supply lines.

The Siege

Shah Abbas besieged Shamakhi in January 1607. The fortress was heavily fortified with high walls, towers, and a deep moat. The Safavid army surrounded the castle from the north (under Allahverdi Khan) and the west (under Shah Abbas himself). The eastern and southern wings were initially left unguarded due to swampy terrain from heavy rainfall, allowing the Ottoman garrison to launch sorties and inflict losses on the Safavid forces.

Shah Abbas ordered the construction of small fortifications to protect engineers building a bridge across the moat and to prevent Ottoman sallies. Heavy siege cannons were transferred from Ganja under the city. Despite setbacks—including the collapse of the bridge (causing many deaths) and rumors of a Shaybanid offensive toward Khorasan—the Safavid army tightened the siege.

On June 27, 1607, a general offensive began. Cannon fire damaged the castle towers, engineers dug under the walls, and Safavid troops captured key towers. The garrison suffered 2,000–3,000 casualties in hand-to-hand combat. The gate under attack fell, and the Safavid army poured into the castle. The Safavids captured approximately 150 large-caliber and 500 small-caliber cannons, along with 6,000 rifles. The Ottoman commander, Shirvan Beylerbey Ahmed Pasha, was released, while his deputy Shamseddin Pasha was executed.

Fall of Baku and Derbent

The siege placed the remaining Ottoman garrisons in Baku and Derbent in critical danger. In January 1607, local aristocracies in both cities stirred revolts against Ottoman rule. In Baku, rebels captured the garrison commander and his staff, beheading the captured soldiers and sending them to Shah Abbas, who rewarded the rebels. In Derbent, the castle commander Kiziroğlu Ahmet Pasha surrendered in early March 1607, ending 29 years of Ottoman rule in the two cities.

Aftermath

The Safavid victory at Shamakhi completed the reconquest of all territories lost to the Ottomans during the 1578–1590 war, accomplished within four years (1603–1607). The Ottoman Empire subsequently prioritized resolving internal rebellions before resuming campaigns against Safavid Iran.

Browse

More topics to explore

    Browse all articles