Альморавиды
Since the Umayyad conquest and the Berber revolt, Morocco and western Algeria followed the Kharijites schools adopted by the ruling dynasties such as the Maghrawa, the emirate of Toudgha and the Ibadhi Rustamid dynasty. And, with the exception of Tunisia and al-Andalus, the Maliki school only became established in the region after the rise of the Almoravid dynasty.