The Battle of Khandaq took place in Shawwal 5 AH (627 CE). The siege lasted for about a month and ended in Dhu al-Qa'dah 5 AH (627 CE).
The Battle of Khandaq was the third major war fought between the Muslims of Madina and the Quraysh and confederate forces from Makkah. The Battle of Khandaq broke out in 5 AH / 627 CE and lasted for around 30 days. On the advice of the Persian companion Salman al-Farisi (RA), Muslims dug defensive trenches, which thwarted enemy plans.
| Fact | Details |
|---|---|
| Also known as | Battle of Ahzab / Battle of the Trench |
| Date | 5 AH / 627 CE |
| Location | Madinah |
| Muslims | About 3,000 |
| Confederate forces | About 10,000 |
| Muslim leader | Prophet Muhammad PBUH |
| Outcome | Muslim defensive victory |
The Battle of Khandaq (the Battle of the Trench), also known as the Battle of Ahzab, took place in Madinah in Shawwal 5 AH (627 CE). The word “Khandaq” is Arabic for trench; it refers to the defensive trench dug by Muslims to fortify Madinah from the plain and vulnerable side. It is also called the Battle of Ahzab because the opposing side was many confederate forces united together.
Since the 3000 Muslim fighters were vastly outnumbered by 10,000 enemy warriors, the Muslims devised a defensive plan instead of direct confrontation. On the suggestion of Salman al-Farisi (RA), Muslims dug a defensive trench that ran for 5.5 kilometers on the northern exposed side of Madina, deterring the enemy from attacking the city.
After the Battle of Uhud (Read more), the Quraysh and allied tribes formed a large coalition to deal with the growing Muslims in Madina. The coalition came to be known as Al-Ahzab (the Confederates). Their foundational goal was to devise a strategy to defeat the emerging Muslim community in Madina.
The opposing forces from Makkah constantly threatened the nascent Muslim community. When the enemy forces banded together and launched an attack on Madinah with a 10,000-strong army, the Muslims had no chance of fighting an open war. The Prophet (PBUH) consulted the companions, and it was the advice of one of the companions, Salman al-Farisi (RA), to protect the northern side of Madina by excavating the earth and making it hard for the enemy to cross into the city of Madinah.
When Prophet Muhammad (PBUH) got the news of the approaching Confederate forces comprised of 10,000 personnel, he consulted the companions about the right strategy to defend the city. As mentioned earlier, the Persian companion, Salman al-Farisi (RA), suggested digging up a trench on the northern side of the city, the side which is not naturally fortified. The trench tactic was common in Persia in times of war, but new to the Arabs. The Prophet agreed with the plan, and Muslims started excavating the earth.
The Muslims worked in the trench despite the harsh conditions. The Prophet (PBUH) participated with the companions in the digging and shoveling. The Muslims were already exhausted when the Confederate forces arrived, and it is captured in the Quran in the following words. Allah says:
This verse expresses the extreme difficulty that Muslims faced in the Battle, and it was a test for the believers to remain steadfast and firm in the way of Allah.
The 10,000-strong allied army was surprised to see the path blocked by an approximately 10 feet deep, 30 feet wide and 5.5 kilometers long trench that stretches all the way along the northern side of Madinah. The Muslims hid behind the trench and prevented the battle from occurring in the open.
The trench stopped the enemy in their path and prevented a direct assault on the city, leaving their forces unable to enter Madinah. The siege placed the Muslims under intense physical and psychological pressure. Fear, hunger, uncertainty, and the constant threat of attack tested the believers severely. In the Quran, Allah says:
The siege went on for almost a month.
During the siege, some of the people in Madinah started spreading rumors that the Prophet’s (PBUH) promise was unrealistic, but the believers remained steadfast. In the Quran, Allah says:
Those who faltered questioned Prophet Muhammad’s (PBUH) promise, spread fear among the companions, and discouraged others from remaining on their ground. But the believers remained firm, trusted Allah’s plan, and followed the Prophet (PBUH).
During the siege, the Banu Qurayzah were accused of violating their agreement and siding with the enemy army on the other side of the trench. Muslims found themselves between threats from inside and outside the city. In the Quran, Allah describes the crisis with Banu Qurayzah thus:
The Confederate forces could not cross the trench. After the prolonged siege, Allah caused the enemy to withdraw. The Qur'an describes Allah sending a wind and unseen forces against the Confederates:
The enemy army had their camps torn by the wind, and the harsh weather and strong wind made it hard for them to stay any longer. The believers remained lodged behind the trench with complete trust in the Prophet’s (PBUH) promise of Allah’s help. The help eventually came in the form of wind and weather, and the enemy was forced to back down. Allah says in the Quran:
As this verse notes, the large Confederate forces ended their siege after around a month of stalemate, and the Muslims successfully defended Madinah, while the Confederate forces eventually withdrew without achieving their objective.
The Battle of Khandaq ended with a defensive victory for the Muslim. The Confederate Army was stopped on its way. Despite the large number of soldiers, they were unable to enter Madina. After a prolonged siege, the coalition was forced to withdraw without achieving its objective.
The battle also marked an important turning point. The failure of the confederates to defeat the Muslims weakened the threat posed by the Quraysh and their allies and demonstrated the growing strength of the Muslim community in Madinah.
The following are the key lessons we can learn from the battle:
The Battle of the Trench taught us that the Muslims did not just leave everything to Allah. They devised a defensive strategy, worked to create the trench, and trusted Allah. We learn that we need to both seek Allah’s help and do our part as well.
The battle exposed hypocrites among the Muslims. As the situation became more and more challenging, the hypocrites questioned the Prophet’s (PBUH) promise, spread fear, and discouraged the believers. The believers remained steadfast, trusted Allah, and followed the Prophet (PBUH).
The Muslims worked together in the face of hunger, exhaustion, and fear of the larger, superior opposing army. It was the result of this unity that Muslims were able to complete the trench before the arrival of the enemy army.
Prophet Muhammad (PBUH) consulted with his companions at the start of the battle, and the trench was dug as a result of one such consultation. The Prophet (PBUH) participated in digging the trench and stood with the companions throughout the crisis.
The Muslims withstood almost a month-long siege without abandoning their faith. Eventually, Allah drove the Confederate forces away. The battle reminds believers that difficult trials can be followed by relief when they remain patient and trust in Allah.
The Battle of Khandaq was a major test of the Muslims' faith, patience, unity, and strategy. Through practical effort and reliance upon Allah, they successfully defended Madinah and forced the confederate forces to withdraw. The battle became an important turning point in the Prophet's PBUH mission in Madinah.
The Battle of Khandaq took place in Shawwal 5 AH (627 CE). The siege lasted for about a month and ended in Dhu al-Qa'dah 5 AH (627 CE).
The Quraysh and the confederate forces of Makkah banded together to attack the Muslims in Madina and defeat the budding community.
It was called the Battle of the Trench because the Muslims dug a defensive trench around the exposed side of Madinah to prevent the enemy from entering the city.
Salman al-Farisi (RA), a Persian companion, suggested using a trench as a defensive strategy.
Around 3,000 Muslims defended Madinah against the confederate forces.
The Muslims successfully defended Madinah, and the confederate army withdrew without achieving its objective.
Surah Al-Ahzab gives the main Qur'anic account of the Battle of Khandaq.
The battle teaches the importance of faith, patience, unity, strategic planning, good leadership, and reliance upon Allah.