Ibn Tumart
The mahdi Ibn Tumart also had championed the idea of strict Islamic law and morals displacing unorthodox aspects of Berber custom. at his early base at Tinmal, Ibn Tumart functioned as "the custodian of the faith, the arbiter of moral questions, and the chief judge." Yet because of the narrow legalism then common among Maliki jurists and because of their influence in the Almoravid regime, Ibn Tumart did not favor the Maliki school of law; nor did he favor any of the four recognized madhhabs. In practice, however, the Maliki school of law survived and by default eventually functioned in an official fashion (except during the reign of Abu Yusuf Ya'qubal-Mansur (1184–1199) who was loyal to Ibn Tumart's teachings). After of century of oscillation, the caliph Abu al-'Ala Idris al-Ma'mun broke with the narrow ideology of prior Almohad regimes (first articulated by the mahdi Ibn Tumart) at had continued to function on and off, and for the most part, at the end, poorly; circa 1230, he affirmed the reinstitution of the then-reviving Malikite rite, perennially popular in al-Maghrib.