伊德里斯王朝
Idris I died soon after in 791, possibly poisoned on the order of the Abbasid caliph Harun al-Rashid, just before his son Idris (II) was born. Once Idris II came of age and officially took over his position as ruler in 803, he continued his father's endeavors and significantly expanded the authority of the new Idrisid state. As a result, the Idrisid dynasty was of central importance to the early Islamization of Morocco, forming the first true "Islamic" state to consolidate power over much of its territory. They also founded the important city of Fes, about 50 kilometres away, which became the Idrisid capital under Idris II.