To the left, inside the entrance to the is a small passageway that leads to a stairway up to the roof of the mosque. From here, you can get access to the Bab al-Futuh, one of the main gates of the Islamic city. Built in 1087 by Badr al-Gamali al-Gayushi, it was designed to protect al-Qahira from the Seljuk Turks who held Syria and were threatening Egypt. But the gate was never put to the test.
Shar'a al-Mu'iz, Cairo, Egypt