The founder of the Idirisid Dynasty, Idris ibn Abdullah was born in Saudi Arabia. He contested Abbasid rule, but fled to the Maghreb after the rebellion was defeated at the Battle of Fakhkh in June of 786/169 AH.
The town of Moulay Idriss, or Moulay Idriss Zerhoune, is spread over two hills at the base of Mount Zerhoun, approximately 3.5 km/2 miles from Volubilis. The town was settle by Idris I, founder of the Idrisid dynasty settled when he came to Morocco in 789/172 AH. Numerous sacred sites are located there, the most important of which is the mausoleum of Idris I, just off the main square. Because of it, the village is a national pilgrimage site, and until 2005 non-Muslims were not allowed in the village after sunset.