Al-jāmiʿ al-aqmar, or al-Aqmar Mosque (Arabic: الجامع الأقمر, literally: Moonlit mosque), was built in Cairo, Egypt, as a neighborhood mosque by the Fatimid vizier al-Ma’mun al-Bata’ihi in 1125-6 CE (519 Hijri). Similarly to the mosque of al-Azhar (970) and the mosque of al-Hakim (990-1013), formerly named al-Anwar, the name of the al-Aqmar mosque is an epithet of the patron in connection with light. The mosque is situated on what was once the main avenue and ceremonial heart of Cairo, in the immediate neighborhood of the Fatimid caliphal palaces, known today as Muʿizz Street.