Al-Hakim Mosque is located to the east of Muizz Street, just south of Bab Al-Futuh, it is also called al-Anwar Mosque (The Enlightened Mosque). This mosque is named after Al-Hakim bi-Amr Allah (985–1021), the sixth Fatimid caliph of Egypt.
The memorial entrance with its huge size and fabulous decorations was very unique at its time. The construction of this mosque started in 990 but it wasn’t completed till 1013. The bases of the minarets are original and can be seen inside the buttresses, though the tops were replaced in 1303 by Baybars II al-Gashankir. Over the centuries, this mosque had been used as as a prison for captive Crusaders, Napoleon’s warehouse, Salah al-Din’s stable, a lamp factory, and a boys’ elementary school.