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.