After the
Fatimids, under the third caliph,
al-Mansur bi-Nasr Allah (), had defeated the rebellion of
Abu Yazid, they began, under his son al-Mu'izz, to turn their attentions back to their ambition of establishing their caliphate throughout the Islamic world and overthrowing the
Abbasids. Although the Fatimids were primarily concerned with Egypt and the Near East, there were nevertheless campaigns fought in the
Maghreb and against the
Umayyads of Spain. At the same time, Fatimid raids on Italy enabled naval superiority in the Western Mediterranean to be affirmed, at the expense of
Byzantium, even capturing Sicily for a period of time. The way to Egypt was then clear for the Fatimids, the more so given the state of crisis that the incumbent
Ikhshidid dynasty found itself in and the inability of the
Abbasids to counterattack. The territory
fell to the Fatimids in 969 without any great resistance. After he had secured his position, al-Mu'izz transferred the royal residence from
Al-Mansuriya to the newly founded city of "al-Mu'izz's Victory",
i.e.,
Cairo, thereby shifting the centre of gravity of the Fatimid realm eastwards. In Egypt, several attacks by the
Carmathians had to be fought off (972–974) before the restructuring of state finances under
Yaqub ibn Killis could be embarked upon. Al-Mu'izz was succeeded by his son
Al-Aziz (975–996). ==Cultural achievements==