Learn about this topic in these articles:

history of North Africa

…at the time by the Warfajūma Berber tribe associated with the Ṣufrī Khārijites. Fihrid rule came to an end in 756 when the Warfajūma conquered the north and captured Kairouan. Immediately thereafter, however, the Ibāḍiyyah in Tripolitania proclaimed one of their religious leaders as imam (the Khārijite equivalent to the…