islam.museum

The Battle of the Trench (al-Ahzab)

غزوة الأحزاب (الخندق)

c. February 627 CE · Shawwal 5 AH

Medina

In Shawwal 5 AH (February-March 627 CE), a confederate army of 10,000 Meccans and Bedouin allies besieged Medina; upon Salman al-Farisi's advice the Muslims dug a protective trench on their northern boundary; the siege endured for nearly a month amidst cold, hunger, and the treachery of Banu Qurayza, until broken by Nu'aym ibn Mas'ud's stratagem and a violent night windstorm.

Depth

At a glance

Era
The Prophetic Era
Region
Arabia
Review
Draft Completeness 2/5 · Help complete it

In time

610620630640

In space

Medina

Map: Natural Earth, public domain · places and route from the graph

BattlesWars and campaigns

Sides

Muslim Defenders of Medina

The early Muslim community · The Muhajirun · The Ansar

Commanders: Muhammad

Confederate Army (al-Ahzab)

Quraysh

Commanders: Abu Sufyan ibn Harb · Uyayna ibn Hisn al-Fazari

Opinions on the question

The question: How are the Battle of the Trench and its outcome read in the Sunni tradition and by historians?

First opinion · Sunni tradition (the museum's frame)Main reference

Sunni sira tradition records the battle as a pivotal turning point where the united polytheist and tribal coalition failed to extinguish Islam, fulfilling the divine promise in Surat al-Ahzab.
More opinions (1)

Academic viewSecondary opinion

Historians analyze the siege as an economic and diplomatic crisis for the confederates, where prolonged stalemate, bad weather, tribal fragmentation, and intelligence operations neutralized their numerical advantage.

Connections

Had participant
Abdullah ibn Umar ibn al-KhattabAbu Sufyan ibn HarbAmr ibn HazmHudhayfa ibn al-YamanKa'b ibn AsadNu'aym ibn Mas'udRufayda al-AslamiyyaSafiyya bint Abd al-MuttalibSallam ibn Abi al-Huqayq (Abu Rafi')Salman al-FarisiUbayy ibn Ka'bUqba ibn Amir ibn NabiZayd ibn ArqamZayd ibn ThabitBanu QurayzaThe early Muslim communityMuhammadAli ibn Abi TalibSa'd ibn Mu'adhHuyayy ibn Akhtab
Occurred at
Medina
Part of
The Prophetic Era
Led to
The Siege and Judgment of Banu QurayzaThe Treaty of Hudaybiyya
Revealed in
Qur'an 33:9

People and things also explored

MedinaThe Battle of UhudThe Siege and Judgment of Banu QurayzaThe AnsarThe Battle of BadrMuhammadThe early Muslim communityThe Hijra

Sources

  • al-Raheeq al-Makhtum — Safi al-Rahman al-Mubarakpuri
  • Sahih al-Bukhari
  • Sahih Muslim
  • al-Sira al-Nabawiyya — Ibn Hisham
  • Zad al-Ma'ad — Ibn Qayyim al-Jawziyya
Cite this page

islam.museum contributors. “The Battle of the Trench (al-Ahzab)”. islam.museum, https://islam.museum/en/event/battle-of-the-trench/. CC BY-SA 4.0. Accessed 2026-10-12.

Improve this page on GitHub · Report an error · JSON

Wing

Time

Eras, timelines, this day in history, any year in the Islamic world.
Related

Medina

City in the Hejaz to which the Prophet migrated in 622 CE; site of the Prophet's Mosque and the first Muslim community.