The Seven Mosques or Saba Masajid refers to a complex of six small historic mosques in the city of Medina, Saudi Arabia. Despite the name, the seventh mosque was notionally represented by the Prophet's Mosque, which is located not far from the complex. This group of mosques commemorates the battle of the Trench, also known as the Battle of Khandaq, which took place in 627 AD. The mosques were constructed close to each other on the battlefield and have undergone rebuilt and renovations over the years. The mosques in the complex are named after significant personalities or incidents related to Islamic history: the Salman Al-Farsi, Abu Bakr, Umar bin Khattab, Ali bin Abu Talib, Fatimah Al-Zahra, and the mosque of Qiblatain where the direction of prayer (qibla) was changed from Jerusalem to Mecca. The site is a popular destination for visitors due to its historic significance in Islam. Pilgrims often stop by to offer prayers and to reflect on the historical events that occurred at this location.