
The Seven Mosques of Madinah & the Battle of the Trench
The Seven Mosques are a group of small historic mosques on the western side of Mount Sala'. They stand near the line of the trench the Muslims dug to defend Madinah.
Quick facts
- Location
- North-west Madinah, near Mount Sala'
- Open
- Daily
- Time needed
- 30–45 minutes
- Known for
- Battle of the Trench, 5 AH
The Battle of the Trench (5 AH / 627 CE)
When a large alliance of tribes marched on Madinah, Salman al-Farisi (may Allah be pleased with him) advised digging a trench across the open northern side of the city. The Prophet ﷺ worked beside the Companions in the cold and hunger. After weeks of siege, Allah sent a fierce wind and the armies withdrew, as described in Surah Al-Ahzab.
The mosques and their names
The small mosques are traditionally linked to positions held during the siege. They are known by the names Al-Fath (the mosque of victory, on the hill, where the Prophet ﷺ is reported to have made du'a), Salman al-Farisi, Abu Bakr, Umar, Ali and Fatimah. Masjid al-Qiblatain, nearby, is often counted as the seventh.
Today a larger modern mosque, Masjid al-Khandaq, serves worshippers at the site, while the historic small mosques are preserved.
Visiting tips
- Combine your visit with Qiblatain, which is very close by.
- Take time to read Surah Al-Ahzab (33:9–27) before you go. It brings the place to life.
- Wear comfortable shoes: there are a few steps up to Masjid al-Fath.
Getting there
The Seven Mosques are included in Zakarasma's Madinah Ziyarat tour (250 SAR per vehicle).
Photos of The Seven Mosques (Sab'a Masajid)
Frequently asked questions
Why are they called the Seven Mosques?
It is a traditional name for the group of small mosques at the trench site. Qiblatain is often counted to make seven.
Is there a mosque for prayer at the site?
Yes. Masjid al-Khandaq, a larger modern mosque, is used for daily prayers.
How long should I spend there?
About 30–45 minutes is enough for most visitors.
Visit The Seven Mosques (Sab'a Masajid) with Zakarasma
Private, air-conditioned transport with an experienced driver. Add this Ziyarat to your package and see your full day-by-day plan with prices.
Related Ziyarat guides

Masjid al-Qiblatain
Visit Masjid al-Qiblatain, where the Qibla changed from Jerusalem to the Kaaba. Its history, the Qur'anic vers…

Mount Uhud & the Martyrs of Uhud
Visit Mount Uhud and the graves of the martyrs, including Hamza (ra). History of the Battle of Uhud, the Arche…

Masjid Quba
Masjid Quba is the first mosque in Islam. Learn its history, the reward of praying two rak'ahs there, opening …