The Sufris (Arabic: الصفرية aṣ-Ṣufriyya) were Khariji Muslims in the seventh and eighth centuries. They established the Midrarid state at Sijilmassa, now in Morocco.
In Tlemcen, Algeria, the Banu Ifran were Sufri Berbers who opposed rule by the Umayyad, Abbasid and Fatimid Caliphates, most notably under resistance movements led by Abu Qurra (8th century) and Abu Yazid.
The Khawarij were divided into separate groups such as the Sufri, Azariqa, Bayhasiyya, Ajardi, Najdat, and Ibadi. Only the Ibadi continue to exist today.