in 1159, the last khurasanid ruler, ali ibn ahmad ibn abd al-aziz, was ousted by the almohad caliphate and sent into exile. the almohads annexed the whole ifriqiya to its empire, putting an end to khurasanid rule.