Salah al-Din Al-Ayyubi (Saladin) assumed control of Egypt upon the death of the last Fatimid Caliph Al-Adid in 1171. Salah al-Din played a great role in establishing a Sunni state in Egypt by building a lot of Sunni schools (madrasas).