Skip to content
Join

The Seven Mosques (site of the Battle of the Trench)

2.5 km · 33 min walk to Masjid an-Nabawi

Historic sites

The Seven Mosques stand near Jabal Sal’ in the north-west of Madinah, along the line of the trench the Muslims dug in 5 AH to defend the city. The Battle of the Trench lasted about a month before the allied tribes gave up and left.

Only a few of the small mosques are still standing. Masjid al-Fath, on the slope, is the best known, and the large Masjid al-Khandaq was built next to the site.

Why it matters

Salman al-Farisi (may Allah be pleased with him) suggested digging the trench. The Prophet ﷺ worked alongside his companions in the cold and hunger.

What to see

  • Masjid al-FathOn the slope of Jabal Sal'
  • Masjid al-KhandaqThe large modern mosque

Etiquette

  • Pray two rakat of greeting the mosque if it is not a disliked time.
  • There is no special dua or ritual for visiting, beyond normal prayer.
  • Do not wipe walls or pillars for blessing.

Good to know

  • Some of the small mosques are closed. Masjid al-Khandaq, a large mosque, is next to the site.

More ziyarat