أطلس الزمانIslamic history from pre-Islamic Arabia to 1924 العربية

Idris I founds the Idrisid state in Morocco

إدريس الأول يؤسس الدولة الإدريسية في المغرب

Ramadan 172 AH · c. Feb 789 CE This year in the atlas
Idrīs ibn ʿAbd Allāh, a Ḥasanid ʿAlid who survived the massacre of the ʿAlid rising at Fakhkh (786), reached Walīlī (Volubilis) and was accepted as imam by the Awraba Berbers — founding the first ʿAlid dynasty and the Moroccan state.

Details

At Fakhkh near Mecca (8 Dhu al-Ḥijja 169 / June 786) an ʿAlid revolt was crushed by ʿAbbāsid troops. Idrīs fled with his freedman Rāshid through Egypt to the far Maghrib, where the Awraba chief Isḥāq ibn Muḥammad gave him protection; the tribes swore allegiance in 789. His rapid expansion alarmed Baghdad and he died in 791, poisoned — the sources say — by an agent sent with Hārūn al-Rashīd's approval. Rāshid raised his posthumous son Idrīs II, who ruled from 803 and developed Fez.

Significance

The Idrīsids anchored Islam and Arabic culture among the Berbers of northern Morocco; Fez became one of the great cities of the Maghrib.

The arena: where the reports differ

Who founded Fez, and when?
Idrīs I founded the first settlement on the right bank in 789some Maghribī sources and many modern accounts
Idrīs II founded the city in 808–809Ibn Abī Zarʿ, Rawḍ al-qirṭās
Verdict: Probably two foundations: an initial town by Idrīs I (789) and the main city by Idrīs II (808–809) on the opposite bank, later merged.
Sources (3)
al-Muqaddima & Kitab al-'Ibar — Ibn KhaldunKitab al-ʿIbar, on the Idrisids
Tarikh al-Rusul wa al-Muluk (SUNY trans., 40 vols) — al-TabariSUNY vol. 30 (Fakhkh)
Ibn Abi Zarʿ, al-Anis al-mutrib bi-Rawd al-qirtas

Open in the atlas