
Seven Mosques Madinah: The Khandaq Area, a Half-Day Plan and a Rest Stop
The first surprise at the Seven Mosques is that you can’t find seven. Count the domes and you’ll probably get five, plus a big modern mosque that clearly isn’t one of the old ones. It’s easy to stand there wondering whether you’ve come to the wrong place.
That’s normal. And once you know why, the place makes a lot more sense.
Located near Mount Sal’ in Madinah, the Seven Mosques complex actually comprises five remaining historic structures and a large modern building, commemorating the historical Battle of the Khandaq from 5 AH. These free, open-air sites mark the defensive trench strategy proposed by Salman al-Farsi to protect the city against a massive coalition of opposing fighters.

Visitors typically take a short taxi ride from Masjid an-Nabawi to explore the small shrines, such as the prominent Masjid al-Fath, on foot within an hour. A recommended half-day itinerary also incorporates nearby Masjid al-Qiblatain and a convenient rest stop before returning for afternoon prayers.
Practical recommendations for tourists include wearing slip-on footwear, carrying water, and timing excursions for the early morning or late afternoon to avoid intense heat.
The short answer: The Seven Mosques sit at the foot of Mount Sal’ (Sila’), about 2 km north of Masjid an-Nabawi, on the line of the trench dug for the Battle of the Khandaq in 5 AH. Five small historic mosques remain, alongside the large modern Al-Khandaq Mosque. They’re open through the day and free. A relaxed visit takes about an hour, and with Masjid al-Qiblatain about 1 km away, the two make an easy half-day with a rest stop before Dhuhr.

Why are they called the Seven Mosques?
Mostly habit. According to Visit Madinah, the group was known as the Al-Fath Mosques until about the 14th century and numbered six. “Seven Mosques” is a more modern name that visitors and tour guides use. To make up the seven, some people add Masjid al-Qiblatain, others add Masjid al-Rayah or the Bani Haram mosque nearby.
The number has also changed because buildings have changed. Visit Madinah says the Abu Bakr as-Siddiq Mosque was demolished and five historic mosques remain. Other sources describe some of the old mosques being merged or rebuilt (Wikipedia). So if you count five and your guidebook says seven, you haven’t missed anything.

What happened here: the Battle of the Khandaq
In 5 AH, a coalition of around 10,000 fighters, led by the Quraysh and joined by Ghatafan, Fazara and others, marched on Madinah (Visit Madinah: The Trench). It’s also known as the Battle of the Confederates, al-Ahzab.

Salman al-Farsi advised digging a trench across the city’s open northern side. The other sides were already protected by lava fields, mountains, farms and close-packed houses. Visit Madinah gives the trench as about 5,544 m long, 4 to 5 m wide and around 3 m deep, with the dug-out earth piled on the Muslim side as an extra wall. It ran along Mount Sal’, right where you’ll be standing.

The confederate army couldn’t cross. After the siege, they went home empty-handed.
The trench itself has gone. Only traces remain (Visit Madinah). The small mosques were built later, from the Umayyad era onwards, to mark the places linked to the battle and the Companions who held them (Saudipedia).

The mosques you’ll see
| Mosque | What to know |
|---|---|
| Masjid al-Fath | The largest and highest of the old group, on the western slope of Mount Sal’. Also called al-Ahzab or the Upper Mosque. Tradition links it to the Prophet’s ﷺ prayer for victory during the battle. Built of basalt and limestone. |
| Masjid Salman al-Farsi | Named after the Companion who suggested the trench. Look for its rounded vaulted ceiling. |
| Masjid ‘Umar ibn al-Khattab | A rectangular hall with an open area, raised above the ground. |
| Masjid ‘Ali ibn Abi Talib | Sits on a raised rectangular mound, about 8.5 m by 6.5 m. |
| Masjid Fatimah az-Zahra | Originally named after Sa’d ibn Mu’adh. Unroofed, inside a wall about 2 m high. |
| Al-Khandaq Mosque (modern) | Built in 1428 AH beside the historic mosques. About 4,237 m², with room for around 2,000 men, 500 women and 500 more in the outdoor yards. |


Descriptions are from Visit Madinah and Saudipedia. The historic mosques are small, so you’ll walk between them in a few minutes. The modern Al-Khandaq Mosque is where you’ll actually pray if a prayer time falls during your visit.
If you have energy for more, Visit Madinah lists other battle sites close by: the Cave of Bani Haram, where the Prophet ﷺ is reported to have slept during the siege; the Bani Haram mosque; and Masjid al-Rayah on its hill, where his command tent stood. CS Madinah warns that al-Rayah is a bit of a climb.

Getting to the Seven Mosques
At about 2 km north of Masjid an-Nabawi, it’s a short taxi ride, usually around 10 minutes outside prayer times. That’s our estimate, so allow more near the adhan. The hop-on hop-off tour bus also stops near the trench area, though CS Madinah’s guide gives two different route colours, so check the current map before relying on it.

Could you walk? The distance is fine on paper, but you’d be walking along busy roads, and in the warm months there’s no point arriving tired and sweaty. Take a taxi there and save your legs for the site.


The half-day plan, with a rest stop
Here’s the plan we’d give a friend. It runs from breakfast to Dhuhr, covers the Seven Mosques and Masjid al-Qiblatain, and builds in a proper break so nobody’s flagging by the time you get back to the Haram.
| Step | What to do | Allow |
|---|---|---|
| 1 | After breakfast, take a taxi from the north side of the Haram to the Seven Mosques. | 10–15 min |
| 2 | Start at Masjid al-Fath, then walk down past Salman al-Farsi, ‘Umar, ‘Ali and Fatimah. Read the trench story on your phone as you go. | 40–50 min |
| 3 | Take a breather at Al-Khandaq Mosque: water, a sit-down, and a prayer if one is due. | 10–15 min |
| 4 | Short taxi to Masjid al-Qiblatain, about 1 km away (Saudipedia). Pray two rak’ahs and read the history panels. | 30–40 min |
| 5 | Rest stop. Taxi back to the north side of the Haram. Sit down somewhere cool, have a drink, use the bathroom, and recharge. | 30–45 min |
| 6 | Make wudu and head into Masjid an-Nabawi for Dhuhr. | 30 min before the adhan |

Total: about three to three and a half hours. If you start at 8am, you’ll be at the rest stop by about 10:30 and inside the Haram with time to spare.
Why put the rest stop at the end and not in the middle? Because the site is mostly outdoors, and once you’re back near the Haram you can rest, eat and walk straight into Dhuhr without another taxi. It’s easy to get this wrong: do three sites back to back, and you end up facing the pre-Dhuhr crowds tired and hungry.
For more on Qiblatain, including its history and the evening option with Sultanah Road, see our Masjid al-Qiblatain visit guide.

Prefer the afternoon?
Flip it round. Go after Asr, visit the Seven Mosques while the sun drops, then move on to Qiblatain and pray Maghrib there. Have dinner on Sultanah Road afterwards. Keep in mind that many scholars consider voluntary prayer disliked between Asr and Maghrib, so save your two rak’ahs for the morning version or pray Maghrib at Qiblatain.

Timing and heat
CS Madinah suggests early morning or the hours before Maghrib to avoid the heat, and we’d agree. From April to October, keep the outdoor walking short and finish before late morning. Masjid al-Fath sits up on the slope of Mount Sal’, and you’ll be walking in the open between the mosques. Our Archers’ Hill guide has a month-by-month temperature table if you’re trying to pick a time.

Practical tips
- Shoes you can slip on and off. You’ll be in and out of small mosques.
- Water and a small snack, which CS Madinah also recommends if you’re walking between sites.
- Read up before you go. The mosques are small and plain. The story is what makes them come alive, so have it in your head (or on your phone).
- Sisters: the modern Al-Khandaq Mosque has a women’s section. Some of the small historic mosques are tiny, so check for a separate entrance before going in.
- Agree a meeting point at the Al-Khandaq Mosque entrance. Groups drift apart between the little mosques.

Your rest stop near the Haram
The plan ends on the north side of Masjid an-Nabawi, which is where we are, four minutes from Gate 329 and open 24 hours. Grab a seat, an iced peach tea or a karak chai, and something to eat if Dhuhr’s still a while off. Here’s how to find us.

We’re Furni, a café four minutes from Gate 329 on the north side of Masjid an-Nabawi. The Seven Mosques are north of the Haram too, so we’ve built the plan below around a proper break on the way back.
Prefer to take it with you? Our post on takeaway near Masjid al-Nabawi covers quick options, and planning meals around prayer times explains how to fit food in before Dhuhr without cutting it fine.

Seven Mosques FAQs
How many mosques are there at the Seven Mosques?
Five historic mosques remain, according to Visit Madinah, plus the modern Al-Khandaq Mosque. The “seven” is a traditional count that often includes Masjid al-Qiblatain or another nearby mosque.
How far are the Seven Mosques from Masjid Nabawi?
About 2 km north, according to Visit Madinah. It’s around 10 minutes by taxi outside prayer times.
Are the Seven Mosques open all day?
Yes. Visit Madinah says they’re open to visitors throughout the day, and no entry fee is listed.
Is there a special reward for praying at the Seven Mosques?
No specific reward is narrated for these mosques. People visit for the history of the Battle of the Khandaq.
Can I still see the trench?
Not really. The trench has disappeared and only traces remain. The mosques and Mount Sal’ mark where it ran.
How long do I need at the Seven Mosques?
About an hour for a relaxed visit, or three to three and a half hours if you add Qiblatain and a rest stop, as in the plan above.
Planning more ziyarat? See our guides to Mount Uhud and Masjid Quba, or start with first time in Madinah.
