Al Quaraouiyine

Deep in the medina of Fes, hidden behind ordinary-looking walls and doorways, stands one of the most important institutions in the history of the Islamic world: Al Quaraouiyine. Founded in the 9th century by a woman, Fatima al-Fihri, it grew into a great mosque and a center of learning that attracted scholars from across North Africa, Andalusia and beyond. It is often described as the oldest existing, continually operating educational institution in the world.

This guide explains the history of Al Quaraouiyine, its founder, its role as a university and mosque, its famous library, what visitors can see, how to visit respectfully and what is nearby in the Fes medina.

DetailInformation
LocationHeart of Fes el Bali, near Place Seffarine and the Al Attarine Madrasa
Founded859, by Fatima al-Fihri
FunctionMosque and historic center of learning, later part of the state university system
Known asOften described as the oldest continually operating educational institution in the world
LibraryOne of the oldest libraries in the world, restored and reopened in recent years
Open to non-MuslimsThe mosque is not open, but you can glimpse its courtyard from certain doors

Fatima al-Fihri was the daughter of a wealthy merchant who had moved to Fes from Kairouan, in present-day Tunisia. After inheriting her father’s fortune, she decided to use it to build a mosque for the growing community of people from Kairouan living in Fes. The mosque became known as Al Quaraouiyine, meaning the mosque of the people of Kairouan.

Fatima’s story is a powerful example of the role women played in early Islamic civilization, and she is remembered today as one of the great founders of learning in history.

Over the centuries, Al Quaraouiyine grew in size and importance. Rulers of successive dynasties, including the Almoravids and the Marinids, expanded and decorated it. It became a major center for the study of Islamic law, theology, Arabic grammar, astronomy, mathematics and medicine.

Scholars and students came from far away, and famous figures are associated with its history, such as the historian Ibn Khaldun and the Andalusian philosopher and physician Ibn Maymun (Maimonides), who is said to have studied in Fes. The Marinid madrasas built around the mosque, such as Al Attarine and Bou Inania, were built to house students.

In the 20th century, Al Quaraouiyine was integrated into Morocco’s modern state university system, continuing its long tradition of teaching.

The library of Al Quaraouiyine is considered one of the oldest libraries in the world, with precious manuscripts, including ancient copies of the Quran and works of science and philosophy. After a major restoration, the library reopened in recent years, combining traditional architecture with modern conservation for its collections. Access to the manuscripts is mostly reserved for researchers.

Al Quaraouiyine is an active mosque, and non-Muslims cannot enter. However, visitors can:

  • Glimpse the large courtyard with its fountains and zellige through some of the open doors.
  • See its green-tiled roofs from terraces in the medina, such as those of nearby madrasas or rooftop cafes.
  • Visit the nearby Al Attarine Madrasa, a 14th century Marinid school with exquisite decoration, open to visitors.
  • Walk around Place Seffarine, the coppersmiths’ square, which borders the area.

A licensed guide can show you the best viewpoints and explain the history.

  • Do not enter the mosque if you are not Muslim.
  • Do not block doorways when looking in, and avoid photographing worshippers.
  • Dress modestly in the area.
  • Keep your voice low near entrances, especially during prayer times.
  • Al Attarine Madrasa.
  • Place Seffarine and its coppersmiths.
  • The Chouara Tannery. See Chouara Tannery.
  • The Nejjarine Fountain and the Museum of Wooden Arts.
  • The shrine of Moulay Idriss II, founder of Fes.

See our guides to Fes attractions, the medina of Fes and landmarks in Morocco.

Al Quaraouiyine is more than a building. It represents more than a thousand years of learning, the role of Fes as an intellectual capital, and the legacy of a woman who invested her fortune in knowledge and faith. Understanding it helps you understand why Fes is considered the spiritual and cultural heart of Morocco.

You cannot enter Al Quaraouiyine as a non-Muslim visitor, but you can feel its presence everywhere in the Fes medina. Glimpse its courtyard, admire its roofs from a terrace, visit the nearby madrasas and remember Fatima al-Fihri, whose vision shaped one of the world’s oldest centers of learning. Our Fes tours and Morocco custom tours include guided medina visits.

What is Al Quaraouiyine?

A mosque and historic center of learning in Fes, founded in 859, often described as the oldest continually operating educational institution in the world.

Who founded Al Quaraouiyine?

Fatima al-Fihri, the daughter of a merchant from Kairouan.

Can non-Muslims visit Al Quaraouiyine?

No, non-Muslims cannot enter the mosque, but they can glimpse its courtyard and visit nearby madrasas.

Is Al Quaraouiyine the oldest university in the world?

It is often described as the oldest existing, continually operating educational institution in the world.

Where is Al Quaraouiyine?

In the heart of Fes el Bali, near Place Seffarine.

Can I visit the Al Quaraouiyine library?

Access to the manuscripts is mostly reserved for researchers.

Tours from Marrakech: Cross the High Atlas to Ait Ben Haddou and the dunes of Erg Chebbi.

Morocco Desert Tours: Camel trekking and a night under the stars in a Sahara desert camp.

Tours from Fes: The oldest medina in Morocco, then the Middle Atlas and the desert.

Tours from Casablanca: Begin at the Hassan II Mosque and travel through the imperial cities.

Tours from Tangier: Start in the north with Chefchaouen and the Rif Mountains.

Tours from Ouarzazate: Kasbahs, film studios and the gorges of the south.

Name
Lahcen Saadi, a professional local guide from the Exploring Morocco Trips team, in traditional attire in front of a 4x4 in the Sahara dunes

Your Local Experts

Our Moroccan team organizes private tours from every major city in Morocco: Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir, Ouarzazate and more. Wherever you land, we pick you up and design your trip around your dates and interests.

Scroll to Top