Open 24/7 · Makkah · Madinah · Jeddah
أهلاً وسهلاً بضيوف الرحمن
The Seven Mosques (Sab'a Masajid)
Madinah Ziyarat
المساجد السبعة

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.

By Zakarasma Tour & Taxi · Updated · 2 min read

Quick facts

Location
North-west Madinah, near Mount Sala'
Open
Daily
Time needed
30–45 minutes
Known for
Battle of the Trench, 5 AH
Plan this Ziyarat
01 / 04

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.

02 / 04

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.

03 / 04

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.
04 / 04

Getting there

The Seven Mosques are included in Zakarasma's Madinah Ziyarat tour (250 SAR per vehicle).

FAQ

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.