Abu al-Ala Idris al-Ma'mun (Arabic: أبو العلا المأمون إدريس بن المنصور; Abū Al-`lā Al-Mā'mūn Idrīs ibn Al-Manṣūr; died 16 or 17 October 1232) was an Almohad rival caliph who reigned in part of the empire from 1229 until his death.
[citation needed] His nephew Yahya took this step as license to proclaim himself caliph and a civil war broke out.
As the situation in North Africa also became worse, al-Ma'mun departed to Morocco and ended thus Almohad rule on the peninsula.
[6] Idris asked Ferdinand III of Castile for help,[7][8] receiving 12,000 knights[a] who allowed him to conquer that city and to massacre the sheikhs that had supported Yahya.
[9] Following his victory, Idris honored the treaty with Ferdinand III and allowed the construction of a Christian church in Marrakesh in 1230, which was destroyed two years later by Yahya.