The Idrisid dynasty or Idrisids were an Arab Muslim dynasty from 788 to 974, ruling most of present-day Morocco and parts of present-day western Algeria. Named after the founder, Idris I, the Idrisids were an Alid dynasty descended from Muhammad through his grandson Hasan. The Idrisids are traditionally considered to be the founders of the first Moroccan state, setting the stage for subsequent dynasties and states centered in this region. Their reign played an important role in the early Islamization of Morocco and also presided over an increase in Arab immigration and Arabization in major urban centers.
Idrisid dirham, minted at al-'Aliyah (Fes), Morocco, 840 CE. The coin features the name of Ali: a son-in-law of Muhammad, the fourth Caliph, and an ancestor of the Idrisids.
Morocco, officially the Kingdom of Morocco, is a country in the Maghreb region of North Africa. It overlooks the Mediterranean Sea to the north and the Atlantic Ocean to the west, and has land borders with Algeria to the east, and the disputed territory of Western Sahara to the south. Morocco also claims the Spanish exclaves of Ceuta, Melilla and Peñón de Vélez de la Gomera, and several small Spanish-controlled islands off its coast. It has a population of roughly 37 million, the official and predominant religion is Islam, and the official languages are Arabic and Berber; French and the Moroccan dialect of Arabic are also widely spoken. Moroccan identity and culture is a mix of Arab, Berber, African and European cultures. Its capital is Rabat, while its largest city is Casablanca.
Ptolemy of Mauretania was the last to rule the Kingdom of Mauretania prior to Roman conquest.
Roman ruins of Volubilis.
Idrisid coin in Fes, 840
al-Qarawiyyin, founded in Fes in the 9th century, was a major spiritual, literary, and intellectual centre.