 Cairo remained the capital for, including al-Muʿizz, eleven generations of caliphs, after which the Fatimid Caliphate finally fell to Ayyubid forces in 567 AH/1171 CE.Unlike western European governments of the era, advancement in Fatimid state offices was more meritocratic than hereditary.Members of other branches of Islam, like the Sunnis, were just as likely to be appointed to government posts as Shiites.