Al-Qarawiyyin is the great mosque and former university at the heart of Fes el-Bali, the old walled medina of Fes in Morocco's Fès-Meknès region. It was founded in 859 CE by Fatima al-Fihri, a woman from Kairouan in present-day Tunisia, who used an inheritance to build a mosque for the quarter settled by migrants from her home city, which gave the complex its name. Over the following centuries it grew into one of the most important centres of Islamic learning in North Africa, teaching theology, law, grammar, mathematics and astronomy, and it is widely cited as the oldest continuously operating degree-granting institution in the world. The Almoravid sultan Ali ibn Yusuf enlarged the building in 1135, giving it the forest of horseshoe arches and the central courtyard that define it today, and later Almohad, Merenid and Saadian rulers added fountains, a minaret restoration and the two ornate pavilions that flank the courtyard. The prayer hall is among the largest in Morocco, with capacity commonly cited at over 20,000 worshippers, arranged in rows of aisles running perpendicular to the qibla wall. Its library, founded in 1349 under the Merenid sultan Abu Inan, preserved manuscripts of exceptional rarity, including early Qur'ans and scholarly treatises; the building and library underwent a major restoration led by the architect Aziza Chaouni and reopened in 2016. Because the interior is closed to non-Muslims, visitors experience the site from the outside: carved cedar doorways on the lanes around Rue Cherabliyine and Place Seffarine can be glimpsed through open doors, where tiled courtyards and a central fountain are partly visible. The surrounding streets are rich in related institutions, including the Al-Attarine and Bou Inania madrasas, which once housed the students who attended lectures here. The mosque has never been a museum in the conventional sense and remains an active place of worship, so the visit is one of quiet observation rather than formal touring. Its role as an intellectual centre linked Fes to Andalusia, the Maghreb and sub-Saharan Africa for more than a millennium.
| Admission | Free |
|---|---|
| Hours | Exterior and doorways viewable at any time; interior closed to non-Muslims |
| Address | Rue Cherabliyine, Fes el-Bali, Fes 30000, Morocco |
Why it matters
Founded in 859 by Fatima al-Fihri, Al-Qarawiyyin is regarded as the oldest continuously operating university in the world and made Fes a centre of Islamic scholarship across North Africa and Andalusia. It remains the spiritual and intellectual core of the medina.
Location
Rue Cherabliyine, Fes el-Bali, Fes 30000, Morocco
34.0646, -4.9737 View on map
Highlights
- Carved cedar doorways visible from Rue Cherabliyine and Place Seffarine
- Courtyard glimpses showing the central fountain and Saadian pavilions
- Founding story of Fatima al-Fihri in 859 CE
- The nearby Al-Attarine and Bou Inania madrasas that served its students
Tips for visiting
- The interior is closed to non-Muslims; look through the open doorways respectfully without photographing worshippers
- Visit in the early morning when the surrounding lanes are quiet
- Dress modestly and avoid pausing in the doorways during prayer times
- Combine with Al-Attarine Madrasa, which stands a few steps away
- A licensed local guide can explain the library and the university's history
When to visit
Early morning offers quiet lanes and good light, while Friday midday is crowded with worshippers.
Frequently asked questions
Can non-Muslims enter Al-Qarawiyyin?
No. The prayer hall and courtyard are closed to non-Muslims, though the doorways and exterior can be viewed from the surrounding lanes.
How long does a visit take?
Around 15 to 30 minutes is enough to see the exterior and nearby doorways, longer if combined with the neighbouring madrasas.
Is it the oldest university in the world?
It is widely cited as the oldest continuously operating degree-granting institution, founded in 859 CE by Fatima al-Fihri.