The complex is located south of Mount Sala', where the Battle of the Trench took place - a historical siege attempt on Yathrib by Arab and Jewish tribes in efforts to defeat the Muslims in Madinah. Surprisingly, the complex is home to just six mosques and not seven like the name suggests; however, the Qiblatain Mosque, which is located one kilometre away from the other mosques, has long been considered part of the complex.