Al-Hajjam al-Hasan ibn Muhammad ibn al-Qasim


Al-Hajjam al-Hasan ibn Muhammad ibn al-Qasim was the tenth Idrisid ruler and sultan of Morocco. He took over after a short Fatimid overlordship by Ubayd Allah al-Mahdi Billah in 925 and was overthrown in 927. He died in 944.
Al-Hajjam was the last Idrisid ruler to stay in the capital Fes.
The Fatimids ruled for 10 more years after they ousted al-Hajjam only to be once again overthrown by the Idrisids under the leadership of al-Qasim Guennoun.