Ayyubid dynasty
After the decay of the Fatimid political system in the 1160s, the Zengid ruler Nur ad-Din, atabeg of Aleppo had his general, Saladin, seize Egypt in 1169, forming the Sunni Ayyubid dynasty. This signaled the end of the Hafizi Mustaali branch of Ismailism as well as the Fatimid Caliphate.