Yahya ibn Muhammad(829 — 864)
Yahya ben Muhammad
5 min read
Idrisid emir of Morocco from 849 to 863, reigning from Fez. His reign was marked by the rise of the city and the founding, in 859, of the al-Qarawiyyin mosque and university.
Frequently asked questions
Key Facts
- Becomes Idrisid emir of Morocco in 849, reigning from Fez
- In 859, the al-Qarawiyyin mosque-university is founded in Fez during his reign
- Under his reign, Fez becomes a major commercial and religious center of the Maghreb
- His reign ends in 863, within an Idrisid dynasty that gradually fragments
Works & Achievements
During his reign, the al-Qarawiyyin Mosque was founded in Fez, which became one of the oldest centers of higher learning in the world.
His reign accompanied the growth of Fez, the arrival of new inhabitants, and the consolidation of the city as the Idrisid capital.
His policy fostered the coexistence of Andalusian refugees and Kairouan families, a driving force behind the economic and cultural rise of Fez.
The minting of coins in the emir's name, asserting Idrisid sovereignty and stimulating trade across the Maghreb.
Support for mosques and scholars, strengthening the role of Fez as a spiritual center of medieval Morocco.
Anecdotes
In 859, during the reign of Yahya ibn Muhammad, a wealthy heiress named Fatima al-Fihri founded the al-Qarawiyyin mosque in Fez. Having become a great center of learning, it is often described as one of the oldest university institutions still in operation in the world.
Fez, in Yahya's time, was divided into two districts separated by the river: the Kairouanese who had come from Tunisia on one bank, and the Andalusians driven out of Cordoba on the other. Each community built its own great mosque, and the city was not truly reunified until much later.
Yahya's reign was marked by an influx of Andalusian refugees and Kairouanese families, who brought to Fez their skills as craftsmen, merchants, and scholars. This twofold immigration made the city one of the most dynamic in the Maghreb.
The Idrisid dynasty descended from Idris I, himself a great-grandson of Ali and of Fatima, the daughter of the prophet Muhammad. This prestigious ancestry gave the emirs of Fez great religious prestige among the peoples of Morocco.
According to the chroniclers, Yahya's authority weakened toward the end of his reign, as Idrisid power gradually fragmented among several branches of the family ruling over different regions of Morocco.
Primary Sources
Chronicle of the city of Fez and the Idrisid kings, which recounts the founding of the al-Qarawiyyin mosque and the unfolding of the dynasty's successive reigns.
Geographical description of the Maghreb mentioning Fez, its Kairouanese and Andalusian quarters, and its great mosques.
Epigraphic testimony preserved in Fez recalling the founding of the building in the year 245 of the Hegira (859).
Key Places
Capital of the Idrisid emirs and a great urban center of medieval Morocco. Yahya reigned here and fostered the city's growth.
Mosque and university founded in Fez in 859 during the reign of Yahya. It became a major center of religious and scientific learning in the Muslim world.
A district of Fez settled by refugees from Córdoba. It housed its own great mosque and contributed to the city's cultural richness.
An ancient city near the Idrisid heartland, in the region where the dynasty took root before settling in Fez.
