For a time the Fatimids aspired to be rulers of the whole Islamic world, and their achievements were impressive. At their peak they ruled North Africa, the Red Sea coast, Yemen, Palestine, and parts of Syria. The Fatimids built the Mosque of al-Azhar in Cairo - from which developed al-Azhar University, now the oldest university in the world and perhaps the most influential Islamic school of higher learning. Fatimid merchants traded with Afghanistan and China and tried to divert some of Baghdad's Arabian Gulf shipping to the Red Sea.
But the Fatimids' dreams of gaining control of the Islamic heartland came to nothing, partly because many other independent states refused to support them and partly because they, like the 'Abbasids in Baghdad, lost effective control of their own mercenaries. Such developments weakened the Fatimids, but thanks to a family of viziers of Armenian origin they were able to endure until the Ayyubid succession in the second half of the twelfth century - even in the face of the eleventh-century invasion by the Seljuk Turks.