HixtoryBETAView on the map

EventMuhammad and the Formation of Islam

The Battle of the Trench (Battle of the Khandaq)

627 CE · Medina Muslim Community · Medina (Yathrib)
Today: Medina, Saudi Arabia

In 627, the Muslims dug a trench around Medina and held off the large army of Mecca and its allied tribes.

What happened

In 627, a large army gathered by Mecca and several tribes surrounded Medina. The Muslims dug a deep ditch (a trench) around the city to block them. The horsemen could not cross the ditch, and in the end the enemy army withdrew.

More detail

Two sources checked

Why it happened

Mecca allied with several tribes and gathered an army of about 10,000 in order to destroy the Muslim community of Medina altogether. Medina was greatly outnumbered.

What happened

According to Islamic tradition, Salman al-Farisi, who came from Persia, proposed digging a trench, and Muhammad and the believers dug the ground together. The allied army, unable to get its cavalry across the trench, only besieged the city for more than two weeks. When fierce wind and cold were joined by suspicion among the allied tribes, the allied army broke up and went home.

What came of it

It became clear that Mecca no longer had the power to destroy Medina. After this battle, the Jewish tribe of Medina, the Qurayza, was severely punished on the charge of secretly dealing with the enemy, and this event is still discussed from several points of view.

People in this event