The Battle of the Trench
(also called the Battle of the Confederates)
Shawwal, 5 AH (627 CE)
The battle began after the exile of the Jewish tribe Banu Nadir from Madinah. Their leader, Huyayy ibn Akhtab, went to Makkah and urged the Quraysh to wage war against Muhammad. Another leader, Kinanah ibn Rabi’, persuaded the Ghatafan tribe by offering them half the annual harvest of Khaybar’s date orchards. The Quraysh were already hostile and readily agreed.
Under the command of Abu Sufyan, an army of over ten thousand men—drawn from Quraysh and several allied tribes—set out for Madinah. When Muhammad heard of their approach, he consulted his followers. One of them, Salman al-Farisi, suggested digging a trench as a defensive barrier around the exposed side of the city. This tactic was unknown among the Arabs but was a common strategy in Persia. Muhammad approved, assigning sections of the trench to groups of ten men each. He himself joined the digging.
The trench was completed just in time. When the Quraysh and their allies arrived, they were astonished to see a wide ditch blocking their path. They camped outside Madinah but were unable to launch a direct assault. For about three weeks, the siege continued. There were only scattered exchanges of arrows, but no decisive fighting.
This episode was one of the most severe tests for the early Muslim community. Contemporary sources describe the psychological strain: the enemy closing in from all directions, morale sinking, and even some followers expressing doubt and despair. Supplies were short, and conditions inside Madinah were harsh.
At one point, while the trench was being dug, a massive rock blocked progress. Muhammad struck it with a pickaxe three times, declaring with each blow that he foresaw future conquests: first Syria, then Persia, and finally Yemen. His words reflected both faith and an attempt to raise morale among his followers during a moment of crisis.
The siege eventually turned in the Muslims’ favour through a mix of strategy and circumstance. Nu‘aym ibn Mas‘ud, a tribal leader from Ghatafan, secretly converted to Islam during the siege. With Muhammad’s permission, he used his position to spread distrust between the Quraysh and their allies, particularly the Jewish tribe of Banu Qurayzah inside Madinah. Meanwhile, a fierce storm struck the enemy camp. It tore down their tents, sent sand and gravel into their faces, extinguished their fires, and scattered their horses. Disheartened, quarrelling, and demoralized, the confederate army broke apart and withdrew.
For the Muslims, who numbered only around three thousand against a coalition four times their size, survival itself was a victory. The trench strategy—novel in Arabia—had proved decisive, and the confederates’ failure marked a turning point in the conflict between Muhammad and his opponents.
