⚔ Battlefields of the World

Battle of the Trench 627

Battle of the Trench: Battle of Trench 627 CE
Image: DrZubairRashid, CC BY-SA 4.0, via Wikimedia Commons

In short

In 627 the Quraysh of Mecca, led by Abu Sufyan, formed a broad alliance with Bedouin tribes such as the Ghatafan and with the exiled Jewish tribe of Banu Nadir, and marched on Medina with about 10,000 men. Medina's defenders numbered perhaps 3,000. On the advice of Salman the Persian, they dug a deep trench across the open northern approach to the city in about six days. Elsewhere the city was protected by lava fields, palm groves and fortified houses.

The confederate cavalry could not cross the trench, and the attackers were not ready for a long siege. For about two weeks they tried to find a way over, and a few horsemen led by Amr ibn Abd Wudd broke through before being driven back; Amr was killed by Ali in single combat. The confederates also tried to win over the Banu Qurayza, the Jewish tribe inside Medina, but mistrust spread between the allies. Short of food and fodder, battered by cold winds and storms, they gave up and went home.

Pin on the north-western side of old Medina near Mount Sala, where the trench is traditionally placed and where the Seven Mosques now stand. Wikipedia gives a rounded point about 3.7 km to the north. The exact line of the trench is not known.

At a glance

DateAbout 31 March to 14 April 627 (Julian calendar)
WhereThe northern edge of Medina, Hejaz, Saudi Arabia
ResultMuslim victory. The confederates abandoned the siege.
CommandersMuslims of Medina: The Muslim leadership in Medina
Confederates: Abu Sufyan of the Quraysh
Coordinates24.4667, 39.6000

Why it happened

After the Muslims moved from Mecca to Medina in 622, a long conflict followed with the Quraysh. The Muslims won at Badr in 624, but were defeated at Uhud in 625.

The Banu Nadir, expelled from Medina in 625, worked to build a coalition large enough to end the Muslim community for good. It became the largest force yet sent against Medina.

The armies and commanders

Muslims of MedinaThe Muslim leadership in Medina, with Ali ibn Abi Talib, Umar, Zubayr ibn al-Awwam, Sa'd ibn Mu'adh (mortally wounded) and Salman the Persian
About 3,000 men from the Muhajirun and the Ansar of Medina.
ConfederatesAbu Sufyan of the Quraysh, with Amr ibn Abd Wudd (killed), Ikrima ibn Amr and Huyayy ibn Akhtab of the Banu Nadir
About 10,000 men in most accounts, including some 600 cavalry; modern estimates range from 7,500 to more than 12,000.

Timeline

  1. Early 627. The confederate alliance gathers and marches on Medina.
  2. Before the siege. The people of Medina dig the trench across the northern approach in about six days.
  3. About 31 March 627. The confederate army arrives and camps beyond the trench.
  4. During the siege. Attempts to cross the trench fail. Amr ibn Abd Wudd is killed after crossing with a few horsemen.
  5. During the siege. Talks with the Banu Qurayza falter as Nu'aym ibn Mas'ud sows distrust between the allies.
  6. About 14 April 627. After a night of cold and violent wind, the confederates break camp and leave.

The result: who won

Losses in the fighting were very small. Early sources name six Muslims and three confederates killed, among them Sa'd ibn Mu'adh, who later died of an arrow wound.

The failure of the siege was a major blow to the Quraysh. Immediately afterwards the Muslims besieged the Banu Qurayza, accused of conspiring with the enemy, and the tribe was destroyed. A year later the Treaty of Hudaybiyyah was agreed with Mecca, and in 630 Mecca itself was taken almost without a fight.

Why it still matters

The Battle of the Trench marked the turning point in the struggle between Medina and Mecca. After it the Quraysh never again sent an army against the city, and the balance of power in Arabia shifted towards Medina.

The trench was a new tactic in Arabia, and the story of Salman's advice is often told as an example of learning from other peoples. The event is described in the Quran, in the sura called al-Ahzab, 'the Confederates'.

Visiting the battlefield today

In north-west Medina, near Mount Sala, a group of small mosques known as the Seven Mosques marks the area traditionally linked with the trench and the camps of its defenders. A large modern mosque now stands nearby.

Medina is a holy city, and visits to some areas have long been restricted to Muslims. Anyone planning a trip should check the current Saudi rules for visiting the city.

Questions people ask

Who won the Battle of the Trench?
The Muslims of Medina. The confederate army gave up the siege and withdrew.
Why is it called the Battle of the Trench?
Because the defenders dug a trench, al-khandaq in Arabic, across the open approach to Medina.
Whose idea was the trench?
Tradition credits Salman the Persian, who knew the method from Persia.
How long did the siege of Medina last?
About two weeks in most accounts, in the spring of 627.
What happened after the Battle of the Trench?
The siege of the Banu Qurayza, then the Treaty of Hudaybiyyah in 628.

Nearby battles

Location

24.4667, 39.6000

Google Maps OpenStreetMap

Sources

Written by Battlefields of the World in our own words. Some facts on this page were checked against the Wikipedia article Battle of the Trench (revision 1385043998), licensed under CC BY-SA 4.0. No text was copied from it.

Read more

Books on the wider war or campaign this battle belongs to.

  • Cover of Muhammad: His Life Based on the Earliest Sources by Martin Lings

    Muhammad: His Life Based on the Earliest Sources

    Martin Lings, 1983

    A biography of the Prophet drawn from the earliest Arabic sources.

    View on Amazon
  • Cover of Muhammad: A Prophet for Our Time by Karen Armstrong

    Muhammad: A Prophet for Our Time

    Karen Armstrong, 2006

    Karen Armstrong’s short biography of the Prophet.

    View on Amazon

Find books on the Battle of the Trench on Amazon →

As an Amazon Associate I earn from qualifying purchases.