Construction of the Mosque of al Hakim was begun by the Fatimid Caliph al-'Aziz in 990 and finished by his son al-Hakim bi-Amr Allah and his overseer Abu Muhammad al-Hafiz 'Abd al-Ghani ibn Sa'id al-Misri in 1013.
The mosque is constructed of brick with stone facades and minarets. Its irregular rectangular plan is composed of a rectangular courtyard surrounded by arcades supported by piers, with a prayer hall whose arcades are also carried on piers. The aisle leading to the mihrab is emphasized both in width and height. The termination of this aisle at the mihrab is marked by a dome carried on squinches, and domes mark the outer corners of the prayer hall as well.
The front facade was given a central projecting monumental portal and its two corner minarets--different in shape and decoration, were encased in projecting square stone structures during the reign of al-Hakim in 1002-3.