Carved cedar and stucco around a courtyard in the Fes medina Imperial Cities Tours

Al-Qarawiyyin in Fes: The World's Oldest University, Explained

Published November 23, 2026 by Morocco Amazing Tours

The short answer: Al-Qarawiyyin is a mosque and centre of learning in the heart of the Fes medina, founded in 859 by Fatima al-Fihri, a woman from Kairouan. It is widely recognised as the oldest existing, continually operating institution of higher learning in the world. Non-Muslims cannot enter the mosque, but you can look into the vast courtyard through the open gates and visit the madrasas around it.

A short history

Fatima al-Fihri used her inheritance to build a mosque for the community of migrants from Kairouan who lived on the left bank of Fes. It was enlarged by later dynasties, notably the Almoravids in the 12th century, and grew into a famous centre of Islamic law, theology, grammar, astronomy and medicine. Scholars such as Ibn Khaldun and the geographer al-Idrisi are linked to its intellectual world.

What you can see as a visitor

  • The courtyard through the gates: white marble, fountains and green tiled roofs, best seen from the doors on the lanes around the mosque.
  • The view from rooftops: several cafes and the Attarine Madrasa terraces look over the mosque's green roofs.
  • The library: one of the oldest libraries in the world, restored and reopened in 2016. Access for tourists is limited.
  • The madrasas around it: Attarine, Sahrij and Cherratine show the same craftsmanship and are open to visitors. See also the Bou Inania Madrasa.
Green-tiled rooftops and minarets of Fes el-Bali
Green-tiled rooftops and minarets of Fes el-Bali

Visiting respectfully

  • Do not step inside the doors unless you are Muslim, and avoid photographing worshippers.
  • Avoid prayer times, especially Friday midday, when the lanes are full.
  • Dress modestly, with shoulders and knees covered.

See it with a local guide

The lanes around Al-Qarawiyyin are the densest part of Fes el-Bali. A licensed guide explains the history and shows you the hidden fondouks and the Chouara Tannery nearby. Guided visits are included on our 8-day tour and other private Morocco tours.

Frequently asked questions

Is Al-Qarawiyyin really the oldest university in the world?

It is widely considered the oldest existing and continually operating institution of higher education, founded in 859.

Can tourists go inside Al-Qarawiyyin?

Non-Muslims cannot enter the mosque, but they can look into the courtyard from the gates and visit nearby madrasas.

Who founded Al-Qarawiyyin?

Fatima al-Fihri, a woman whose family came from Kairouan in today's Tunisia.

Where is Al-Qarawiyyin in Fes?

In the centre of Fes el-Bali, near the Attarine Madrasa and the Seffarine square.

Plan it with us: Marrakech tours and trips and Morocco itineraries.

See it with a private driver

Planning a trip around this? These private, driver-guided itineraries cover it — every route can be adjusted to your dates.

Ask a Local on WhatsApp

Comments

No comments yet — be the first.

Get Morocco travel tips in your inbox

Seasonal itinerary ideas and practical tips — no spam, unsubscribe anytime.

WhatsApp