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.
Yahya ibn Muhammad(829 — 864)
Yahya ben Muhammad
5 min read
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.
Typical Objects

A stepped pulpit of carved wood from which the imam delivers the Friday sermon. A symbol of religious authority in the great mosques of Fez.

A sacred book copied by hand by calligraphers, preserved and studied in the mosque-universities. A central tool of religious teaching at al-Qarawiyyin.

A gold or silver coin struck in the emir's name, bearing religious inscriptions. An assertion of sovereignty and an instrument of Maghrebi trade.

A hanging light fixture illuminating the prayer hall and the nighttime study circles. An object both utilitarian and a symbol of the light of knowledge.

A cut reed used to write in ink, the instrument of the calligrapher and the copyist. Essential for transcribing religious and scholarly texts.

A large hooded woolen cloak worn by the men of the Maghreb. A garment suited to the climate and a marker of social status.
School Curriculum
Vocabulary & Tags
Key Vocabulary
Daily Life
Morning
The emir began his day with the dawn prayer at the mosque, surrounded by his close relatives and dignitaries. He then received his first counselors to handle the affairs of the city and the kingdom.
Afternoon
The afternoon was devoted to administration: audiences, justice, receiving notables from Kairouan and Andalusia, and overseeing the city's revenues. He might visit the building sites and markets of Fez.
Evening
In the evening, after prayer, the emir shared a meal with his family and his faithful followers. The evenings could be enlivened by readings of poetry, discussions of religious questions, or the listening to stories.
Food
The diet was based on wheat and barley bread, olive oil, vegetables, dates, and fruit. Mutton and poultry were reserved for the tables of the wealthy, seasoned with spices brought in through trade.
Clothing
The emir wore tunics of fine cloth, a loose-fitting cloak such as the woolen *burnous*, and a turban marking his rank. Precious, embroidered fabrics signaled his authority.
Housing
He resided in a princely dwelling in Fez, arranged around inner courtyards and fountains. The rammed-earth and brick walls, the carved wooden doors, and the *zellige* tilework reflected the emerging urban refinement.
Historical Timeline
Period Vocabulary
Liens externes & ressources
Références
Œuvres
Soutien à la fondation de la mosquée al-Qarawiyyin
859
Développement urbain de Fès
849-863
Intégration des communautés kairouanaise et andalouse
IXe siècle
Frappe monétaire idrisside
849-863
Patronage des institutions religieuses
IXe siècle






