The zawiya of Moulay Idriss II was built using an architectural style called Alawi during the rule of Moulay Ismail. Moulay Idriss II’s father was the one who founded the Idrisid dynasty. He was a descendant of the Prophet Muhammad who fled from Abbasid controlled territory. His father was just thirty-three years old when he died. Moulay Idriss II was born in 791 and he ruled Morocco from 807 to 828 after the death of his father.