This is likely the famous mosque you remembered. It is located directly inside the walls of the Cairo Citadel. Commissioned in the 1830s, this spectacular Ottoman-style mosque features towering twin minarets and is heavily clad in glowing white alabaster stone, making it a dominant feature of the Cairo skyline.
What Tourists Actually Search For (Tips & Hacks):
Ticket Confusion: You do not need to buy a separate ticket for this mosque. Your general admission ticket to the Cairo Citadel covers entry to the mosque.
The "Celebrity" Experience: Be prepared for local Egyptian school children on field trips to constantly ask to take selfies with you. For whatever reason, the courtyard of this specific mosque is where tourists get asked for photos the most in all of Cairo.
The Viewpoint: Tourists heavily search for the best place to view the Pyramids from the city. The terrace just outside the mosque offers a sweeping, panoramic view of all of Islamic Cairo, and on a clear, smog-free day, you can see the Pyramids of Giza silhouetted in the distance.
Dress Code: As an active place of worship, modest dress is required. Shoulders and knees must be covered, and women may be asked to wear a headscarf (which are provided at the door). You must also take your shoes off to walk on the carpets inside.