Al-Hajjam al-Hasan ibn Muhammad ibn al-Qassim (or
Hassan I al-Hajam) 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 overthrowned in
927. He died in
944.
Al Hajjam (meaning the barber in Arabic) was the last Idrisid ruler to stay in the capital Fes.