 It developed during the era of Al-Hakim in the site to provide the need for the mosque within the siege area, and returning the wealth to the ordinary people.During the Fatimid-era, there were numerous palm trees within the yard, and caliphs enjoyed the view of the mosque from the fleet on the Nile.The mosque was also called as Awlad 'Anan Mosque, an ode to two brothers who were experts on tasawwuf during the era of the Mamluk sultan Tuman bay II, Muhammad and Abdul Qadir bin 'Anan.