Al-Hasan ibn al-Qasim Jannun
Al-Hasan ibn al-Qasim Jannun was the thirteenth and last Idrisid ruler. He took over after Abu l-Aish Ahmad in 954 until his capture by the Umayyads in 974. He was then exiled to Córdoba, Spain. In 985, he returned from Cairo to western Maghreb with Fatimid support and attempted to regain control. However, he was defeated that same year by an Ummayad general and was then executed.