
The Trench & Seven Mosques
A historic area associated with the Battle of the Trench, one of the major events of the Prophetic biography, and home to the group of historic mosques known as the Seven Mosques.
On the western side of Madinah lies an area associated with one of the defining events of the Prophetic biography: the Battle of the Confederates, commonly known as the Battle of the Trench. In the fifth year after the Hijrah, as the confederate forces approached Madinah, Salman Al-Farsi suggested digging a defensive trench along the city’s exposed approaches. The Prophet ﷺ and his companions participated in its construction.
Today, the area contains a group of small historic mosques collectively known as the Seven Mosques. Among the best known is Al-Fath Mosque, alongside mosques bearing the names of several companions. The sites have long been associated in local historical tradition with the wider landscape of the Battle of the Trench.
The surrounding geography helps visitors understand the events in context. Seeing the mountains, elevated terrain and approaches to the city makes the defensive strategy easier to visualize. The experience is therefore best approached not simply as a visit to several mosques, but as an opportunity to understand the story and landscape of Al-Khandaq.
Here, the landscape brings the story of the Trench into perspective.
The area is associated with the Battle of the Confederates in the fifth year after the Hijrah, events of which are referenced in Surat Al-Ahzab in the Qur’an. No specific religious merit is established for visiting or praying in the individual mosques at the site.
The Battle of the Trench took place in 5 AH / 627 CE, when Quraysh and allied tribes advanced towards Madinah. The Muslims dug a trench along the city’s exposed approaches as part of their defensive strategy, following a suggestion attributed to Salman Al-Farsi.
Read a short account of the battle before you arrive; the details of the place mean more afterwards.
- Best time
- Not entered yet
- Distance
- Not entered yet
- Suggested duration
- Not entered yet

























