A school rooted in Fez’s urban life
Al-Qarawiyyin began in 859 in Fez, Morocco, as a mosque founded by Fatima al-Fihri. In the medieval city, a mosque could serve more than a place of prayer: it was also a setting for teaching and public discussion. Lessons in religious subjects grew around the institution, linking learning to the daily life of the surrounding community.
From lessons to a university
For centuries, scholars taught and studied at al-Qarawiyyin, and its curriculum eventually included fields such as law, grammar, mathematics, and astronomy. Students learned through lectures, reading, and discussion with teachers. This was not a modern university with a fixed campus and standardized degrees from the start; the institution’s educational role developed gradually, in forms suited to its time.
That long evolution helps explain why claims about the “oldest university” can depend on what counts as a university. Al-Qarawiyyin’s distinction rests on its founding date and continued life as a center of learning, rather than on having operated unchanged under a modern definition.
Continuity through change
The institution’s history spans political shifts and changes in how education was organized. Its buildings and teaching practices changed, but the place remained connected to scholarship in Fez. Today, al-Qarawiyyin is part of Morocco’s public university system, while its historic mosque remains a place of worship.
Its longevity is not a story of a school frozen in the ninth century. It is a story of an institution adapting while keeping learning anchored in the same city—and of how a local religious center could become one of the world’s most enduring educational institutions.






