 Abdullāh al-Mahdi's control soon extended over all of central Maghreb, an area consisting of the modern countries of Morocco, Algeria, Tunisia, and Libya, which he ruled from Mahdia, in Tunisia.Newly built capital Al-Mansuriya, or Mansuriyya (), near Kairouan, Tunisia, was the capital of the Fatimid Caliphate during the rules of the Imams Al-Mansur Billah (r. 946–953) and Al-Mu'izz li-Din Allah (r. 953–975).The Fatimid general Jawhar conquered Egypt in 969, and he built a new palace city there, near Fusṭāt, which he also called al-Manṣūriyya.