It is located within the Citadel of Saladin, atop a hill, from where it commands the entire city with a spectacular view. This mosque was built between 1830 and 1848 by order of Mohammed Ali Pasha, the Ottoman leader who modernized Egypt in the 19th century.