 The Fatimid general , Jawhar al @-@ Siqilli built a new palace city near to Fusṭāt upon conquering Egypt in 969 , which he at first called al @-@ Manṣūriyya after the capital in Tunisia . When Al @-@ Mu 'izz arrived in 973 , the name was changed to al @-@ Qāhira ( Cairo ) . The new city incorporated elements of the design of Al @-@ Mansuriya , although it was rectangular rather than circular in plan . Both cities had mosques named al @-@ Azhar after the Prophet 's daughter , Fatima al @-@ Azhar , and both had gates named Bab al @-@ Futuh and Bab Zuwaila . Both cities had two palaces , for the caliph and for his heir , opposite and facing each other . 
