It was built between 1869 and 1912. In 1869 khoshiar (the mother of Ismael Pacha) ordered the construction of a mosque as a mausoleum for the royal family. Engineer Hussien Fahmy Pacha put the plan and design of the Mosque but died during the construction of the first stage of the Mosque. In 1881 the construction was stopped to change some designs. After Khoshiar died in 1885, the construction was suspended. Khoshiar Hanem was buried in the Mosque. After 25 years Governor Abbas II ordered Hatz Pacha to complete the construction of the Mosque. In 1912 the Mosque was opened to the public.