In 1171, Saladin effected a palace coup that deposed the last Fatimid caliph. Egypt’s political allegiance was transferred to Nur al-Din in Syria. Religious obedience was switched to the Sunni Abbasid caliph in Baghdad. This on its own was a massive accomplishment (and one that has earned Saladin eternal opprobrium in the Shia world).