Yahya ibn Muhammad(829 — 864)

Yahya ben Muhammad

5 min read

PoliticsSpiritualitySocietyMiddle AgesMedieval Morocco under the Idrisid dynasty, 9th century, a period of consolidation of Fez as a major urban and religious center of the Maghreb.

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

The key thing to remember is that Yahya ibn Muhammad was the Idrisid emir who ruled over Fez from 849 to 863. In Moroccan tradition, his name is inseparable from the founding of the al-Qarawiyyin mosque in 859, although the initiative actually came from Fatima al-Fihri, a wealthy heiress. More a builder than a conqueror, he embodies the golden age of the Idrisid dynasty, when Fez became a major urban and religious center. What sets him apart is that he encouraged the integration of Andalusian and Kairouanese refugees, whose skills made the city prosper.

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

Support for the founding of the al-Qarawiyyin Mosque (859)

During his reign, the al-Qarawiyyin Mosque was founded in Fez, which became one of the oldest centers of higher learning in the world.

Urban development of Fez (849-863)

His reign accompanied the growth of Fez, the arrival of new inhabitants, and the consolidation of the city as the Idrisid capital.

Integration of the Kairouan and Andalusian communities (9th century)

His policy fostered the coexistence of Andalusian refugees and Kairouan families, a driving force behind the economic and cultural rise of Fez.

Idrisid coinage (849-863)

The minting of coins in the emir's name, asserting Idrisid sovereignty and stimulating trade across the Maghreb.

Patronage of religious institutions (9th century)

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

Rawd al-Qirtas (Ibn Abi Zar) (14th century)
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.
Kitab al-Istibsar fi 'aja'ib al-amsar (12th century)
Geographical description of the Maghreb mentioning Fez, its Kairouanese and Andalusian quarters, and its great mosques.
Foundational inscription of the al-Qarawiyyin mosque (859)
Epigraphic testimony preserved in Fez recalling the founding of the building in the year 245 of the Hegira (859).

Key Places

Fez

Capital of the Idrisid emirs and a great urban center of medieval Morocco. Yahya reigned here and fostered the city's growth.

Al-Qarawiyyin Mosque

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.

Andalusian Quarter

A district of Fez settled by refugees from Córdoba. It housed its own great mosque and contributed to the city's cultural richness.

Volubilis (Meknes region)

An ancient city near the Idrisid heartland, in the region where the dynasty took root before settling in Fez.

See also