Founded in 859 AD by Fatima al-Fihri, Al-Quaraouiyine in Fes is the oldest university on earth. Here's what you can actually see as a visitor.
Written by the Serenity Morocco editorial team · Reviewed by Amina El-Fassi, Imperial Cities & Cultural Immersion
Last reviewed
Get Morocco Travel Insights
Al-Quaraouiyine in Fes was founded in 859 AD by Fatima al-Fihri, a woman from a merchant family, and is widely cited by Guinness World Records and UNESCO as the oldest continuously operating, degree-granting university in the world. It remains a working mosque, so non-Muslim visitors admire it from the doorways and through glimpses of its courtyard rather than entering the prayer hall.
#At a Glance
| | | |---|---| | Founded | 859 AD by Fatima al-Fihri, a woman from a merchant family | | Claim to fame | Widely cited by Guinness World Records and UNESCO as the oldest continuously operating, degree-granting university in the world | | Access | Still a working mosque — non-Muslims admire it from the doorways; the prayer hall is closed to them | | The library | Often called the oldest working library on earth; tourist access is limited and not guaranteed | | Time needed | 20 to 30 minutes for the exterior and doorways; a relaxed half-day with nearby sights | | Getting there | Roughly 15 to 20 minutes' walk through the lanes from Bab Boujloud; no vehicle access |
#Why Visit Al-Quaraouiyine
Most "oldest in the world" claims wilt under scrutiny. This one largely holds up. Al-Quaraouiyine has been teaching, in some form, for over eleven centuries, longer than Oxford, Bologna or Paris, and it was founded by a woman at a time when that was remarkable. Standing at its threshold in the heart of the Fes medina, you are at one of the genuine intellectual cradles of the medieval world, where scholars studied theology, law, grammar, medicine, mathematics and astronomy.
Be clear about what a visit is, though. This is not a ticketed monument you wander through. The mosque and university complex is still in active religious use, and the prayer hall is closed to non-Muslims. The reward here is atmosphere and history, not a guided walk through the interior. Manage that expectation and the visit is deeply rewarding.
#A Short History
Fatima al-Fihri was born in Qairouan (in present-day Tunisia) and moved with her family to Fes. When she inherited wealth from her father, she chose to spend it building a mosque for her community, naming it after her home city. Founded as a mosque with a teaching school (madrasa) in 857 to 859 AD, it grew into a centre of learning that drew students from across the Islamic world and beyond.
Its associated library, established at the same time, is often called the oldest working library on earth. After a major restoration led by the Canadian-Moroccan architect Aziza Chaouni, it reopened in 2017 with conserved manuscripts, repaired waterworks and an exhibition space. Access for general tourists has historically been limited and not guaranteed, so treat any library visit as a bonus rather than a certainty, and confirm current arrangements locally.
For the wider story of Fes among Morocco's royal capitals, the imperial cities guide is a good companion read.
#What You Can Actually See
Honesty matters here, so here is the realistic picture.
- The great doorways. The main gates onto the mosque are richly decorated with carved cedar, stucco and zellij tilework. From the entrances you can look in toward the famous courtyard and its fountains.
- Courtyard glimpses. At various doors around the complex you catch framed views of the marble-paved sahn (courtyard), the green-tiled roofs and the minaret.
- The surrounding quarter. The mosque is embedded in a warren of lanes that are an experience in themselves, full of brass workers, bookbinders and scholars.
- The library exterior and, if access is permitted at the time of your visit, parts of the restored interior.
The prayer hall itself, which you can only partly glimpse, is vast: a forest of horseshoe arches on plain columns, capable of holding many thousands of worshippers. Its scale tells you how central this institution was to the medieval city. What survives today reflects centuries of additions and patronage by successive Moroccan dynasties, each leaving their mark in tile, plaster and cedar. Even from the doorways, you can sense that this is not a single moment frozen in time but a building that has been loved, repaired and enlarged for over a thousand years.
#Planning Your Visit
Hours and tickets. Because the prayer hall is not open to non-Muslims, there is no standard tourist ticket for the mosque itself. You can approach the exterior and doorways at most reasonable daytime hours, with the obvious caveat that the immediate area is busiest and most restricted around the five daily prayer times and especially on Fridays. Any library access is arranged separately and can change, so check current rules on the day.
How to get there. Al-Quaraouiyine sits at the very heart of Fes el-Bali, the old medina. There is no vehicle access. Most visitors walk in from the Bab Boujloud (Blue Gate) gate, roughly 15 to 20 minutes through the lanes, though "roughly" is generous given how easy it is to lose your bearings.
How long to allow. The mosque exterior and doorways take 20 to 30 minutes. Combined with the neighbouring sights below, plan a relaxed half-day in this part of the medina.
#Etiquette
- Dress modestly. Cover shoulders and knees; this is a sacred site even from the outside.
- Ask before photographing people, particularly worshippers near the entrances.
- Keep your voice down around the doorways, and don't attempt to step inside the prayer hall.
- Avoid prayer times if you want the calmest experience.
#Insider Tips
- Look up and look down. The detail is in the carved cedar lintels above the doors and the worn marble thresholds underfoot, polished smooth by eleven centuries of feet.
- Visit mid-morning, after the early prayer crowds and before the midday heat.
- Circle the complex. Al-Quaraouiyine has several entrances, and different doors offer different views into the courtyard. A slow loop around the outside reveals more than standing at a single gate.
- Don't rush past the booksellers. The lanes immediately around the mosque have long been home to bookbinders and stationers, a living echo of the university's scholarly past.
- Hire context, not just directions. Without someone to explain what you're seeing, it's easy to walk straight past the most important door in the medina and never realise it.
#Nearby
You are surrounded by highlights. The exquisite Bou Inania Madrasa, one of the few religious buildings in Fes that non-Muslims can enter, is a short walk away, and the working Chouara Tannery is close by too. The nearby Nejjarine Museum of Wooden Arts and Crafts, housed in a restored caravanserai, charges around 20 to 25 MAD (confirm current price) and is a quiet, beautiful pause. The small zaouia (shrine) of Moulay Idriss II is also moments away.
#Visiting on a Private Tour
Al-Quaraouiyine rewards understanding more than almost any site in Fes, precisely because so much of its significance is invisible from the doorway. A knowledgeable private guide turns a quick photo stop into the story of Fatima al-Fihri, the medieval golden age of learning, and the architecture you're looking at. Our private tours include expert local guides who navigate the medina and bring this history to life. See how it fits a full day on our Fes tours page, or explore all our tours.
#Frequently Asked Questions
Can non-Muslims go inside Al-Quaraouiyine? No. The mosque and prayer hall are reserved for Muslims. Non-Muslim visitors admire the doorways and catch glimpses of the courtyard from the entrances.
Is Al-Quaraouiyine really the oldest university in the world? It is widely recognised by Guinness World Records and UNESCO as the oldest existing, continuously operating degree-granting institution, founded in 859 AD.
Who founded it? Fatima al-Fihri, a woman from a merchant family originally from Qairouan in Tunisia, using her inheritance.
Can I visit the famous library? The restored library reopened in 2017, but general tourist access has been limited and is not guaranteed. Check current arrangements locally.
Is there an entrance fee? There is no standard tourist ticket for the mosque, since you view it from outside. Any library access is arranged separately.
Share this article
Ready to experience Destination Guides for yourself?
Skip the guesswork. Tell us what you love and our Morocco specialists will design a private, bespoke itinerary — with a free quote and zero obligation.



