The Kairaouine — Fes's 1,100-Year-Old Mosque and University
The Oldest University

The Kairaouine — Fes's 1,100-Year-Old Mosque and University

Founded in 859 CE, the Kairaouine (Al-Qarawiyyin) is widely recognised as the oldest continuously operating university on earth, and the beating heart of the Fes medina. Non-Muslims cannot go inside, but this guide shows exactly which gates and viewpoints let you glimpse its courtyard, how the restored library fits in, and how to find it in the maze.

10 min read Updated July 2026 Fes, Morocco

What it is

A mosque, university and library founded in 859 CE by Fatima al-Fihri

Claim to fame

Widely cited as the oldest continually operating degree-granting institution in the world

Location

The heart of Fes el-Bali, between Place Seffarine and the Attarine quarter

Non-Muslim access

No entry to the prayer hall; views from the gates only

Best glimpse

Through the main Bab al-Ward gate to the marble courtyard and fountain

The library

Al-Qarawiyyin Library, restored and reopened in 2016; access is limited

Entry fee

Free to view from the outside; no ticket for the mosque

Time needed

20-30 minutes to circle the gates

By City Tours Morocco Editorial Team

Published 17 July 2026 Last updated 17 July 2026

The world's oldest university

The Kairaouine - Al-Qarawiyyin in Arabic - was founded in 859 CE by Fatima al-Fihri, a woman from a family of migrants from Kairouan in Tunisia, who used her inheritance to build a mosque and place of learning for her community. What began as a mosque grew into a centre of teaching in religious sciences, law, grammar, astronomy and medicine, and it is widely cited, including by Guinness World Records and UNESCO, as the oldest existing and continually operating degree-granting institution of higher education in the world.

Its scholars and students shaped intellectual life across the medieval Islamic world and beyond, and the institution still functions today as part of Morocco's university system. The mosque itself was expanded by successive dynasties into one of the largest in North Africa, with a vast pillared prayer hall said to hold around 20,000 worshippers. For all that history, it wears no monumental face onto a grand square - it is woven so tightly into the fabric of Fes el-Bali that many visitors pass its walls without realising what lies behind them.

What non-Muslims can and cannot see

This is the question every visitor asks, so let us be precise. As a working mosque, the Kairaouine is closed to non-Muslims, who may not enter the prayer hall or courtyard. What you can do is look in through its many gates, and some of them give a genuinely rewarding view. The finest is the main western gate, Bab al-Ward, which lines up along the marble-paved courtyard toward the central fountain and the arcades, giving a clear sense of the scale and the green-tiled roofs beyond.

As you circle the exterior along the narrow lanes, other doorways open onto glimpses of the pillared naves, the chandeliers and the intricate ceilings, especially when the doors stand wide for prayer. The experience is one of catching the interior in fragments rather than seeing it whole, which is part of its atmosphere. Be discreet: stand to the side of a gate rather than in the doorway, do not photograph worshippers, and never step over the threshold. The table below sets out the main viewing points.

ViewpointWhat you seeNote
Bab al-Ward (main west gate)Courtyard, marble paving and central fountainThe best single view; line up along the axis
Northern lane doorwaysGlimpses of pillared naves and chandeliersClearest when doors open for prayer
Place Seffarine sideScale of the walls and minaret aboveCombine with the coppersmiths' square
Al-Qarawiyyin Library entranceThe restored library facadeInterior access limited; ask locally
Rooftop cafe terraces nearbyGreen-tiled roofs from aboveBest overview; buy a mint tea
Kairaouine viewing points for non-Muslim visitors

The Al-Qarawiyyin Library

Attached to the mosque is one of the oldest working libraries in the world, in continuous use since the 14th century and holding a priceless collection of manuscripts - among them a celebrated 9th-century Quran and an original copy of Ibn Khaldun's Muqaddimah. For decades the library was fragile and largely closed, until a major restoration led by the Moroccan-Canadian architect Aziza Chaouni brought it back to life, and it reopened in 2016 with modern climate control protecting the manuscripts.

Access for ordinary visitors, however, remains limited. Parts of the restored building have at times been opened to the public, including a small gallery or cafe area, but entry to the reading rooms and the manuscript collection is generally reserved for scholars and researchers, and public opening has been intermittent. If seeing the library matters to you, ask at your riad or a licensed guide about current arrangements rather than assuming you can simply walk in. Even from the outside, knowing that a thousand years of scholarship sits behind that door changes how you see the surrounding lanes.

Finding it in the medina

The Kairaouine has no signposted grand entrance, and finding it is part of the challenge of the Fes medina. The simplest approach is to walk down Talaa Kebira or Talaa Sghira from Bab Bou Jeloud toward the centre, following the general downhill flow of people and goods, and to aim for two nearby landmarks that are easier to locate: the Al-Attarine Medersa and the Zaouia of Moulay Idriss II, both of which sit right against the mosque complex.

A reliable anchor is Place Seffarine, the small square of coppersmiths whose hammering you can often hear before you see it - the mosque's walls and one of its gates border the square. Do not expect signage to guide you; the medina resists it. Many first-time visitors reach the Kairaouine most easily on a half-day with a local guide, and our Fes medina navigation guide explains how to orient yourself around these central landmarks without one.

The square and quarter around it

Because you cannot go inside, the streets around the Kairaouine become the real visit, and they are among the most atmospheric in Morocco. Place Seffarine is the standout: an open square where coppersmiths and metalworkers still beat trays, pots and lanterns by hand, the ring of their hammers echoing off the walls of the mosque. The old Seffarine Medersa, one of the oldest in the city, stands on the square, and the smell of woodsmoke and hot metal fills the air.

A few minutes away, the Nejjarine fountain and wood museum occupies a beautifully restored funduq, and the perfumers' and spice sellers' lanes of the Attarine quarter give the Al-Attarine Medersa its name. This dense knot of religious, commercial and craft life around the Kairaouine is the spiritual and physical heart of Fes el-Bali, and lingering here - rather than rushing to tick off a monument you cannot enter - is the way to appreciate it.

  • Place Seffarine: the coppersmiths' square, where trays and lanterns are still beaten by hand against the mosque walls.
  • Zaouia of Moulay Idriss II: the revered shrine beside the mosque, ringed by candle and craft stalls (interior closed to non-Muslims).
  • Souk al-Attarine: the perfumers' and spice lanes that give the neighbouring medersa its name.
  • Nejjarine square: the carpenters' square with its mosaic fountain and wood-arts museum, a few minutes north.
  • The Kissariat: the covered luxury-goods markets threading between the mosque and the souks.

Combining your visit and practicalities

Viewing the Kairaouine costs nothing and takes 20 to 30 minutes to circle at a gentle pace, so build it into a wider walk rather than treating it as a destination in itself. The obvious pairing is with the two medersas you can actually enter, the Al-Attarine next door and the grand Bou Inania higher up the hill, plus the Chouara tanneries a short walk east. Together they make a satisfying half-day of the medina's core.

Dress modestly around the mosque - shoulders and knees covered - and be especially mindful at prayer times and on Fridays, when the gates are busy with worshippers and it is best not to crowd them. For the wider picture of Fes's sacred architecture, see our Morocco grand mosques guide, and for planning a stay, the 3 days in Fes itinerary sequences the Kairaouine into a full medina day.

SightApprox. walkEntryCan you go in?
Al-Attarine Medersa1-2 min~30 MADYes
Place Seffarine (coppersmiths)2-3 minFreeOpen square
Nejjarine Museum & Fountain5 min~20-30 MAD museumMuseum yes
Bou Inania Medersa12-15 min uphill~30-50 MADYes
Chouara Tanneries8-10 minFree (tip)Terrace views
Sights around the Kairaouine (walking distances)

Frequently Asked Questions

Can non-Muslims go inside the Kairaouine mosque in Fes?

No. As an active mosque, the Kairaouine is closed to non-Muslims, who may not enter the prayer hall or the inner courtyard. You can, however, view it for free from its many gates. The best is the main western gate, Bab al-Ward, which lines up along the marble courtyard to the central fountain. Other doorways along the surrounding lanes offer glimpses of the pillared naves, especially when the doors open for prayer.

Why is the Kairaouine called the oldest university in the world?

It was founded in 859 CE by Fatima al-Fihri as a mosque and centre of learning, and it has taught continuously ever since, making it, by wide agreement including Guinness World Records and UNESCO, the oldest existing and continually operating degree-granting institution of higher education. It predates the European universities of Bologna and Oxford by several centuries and still functions within Morocco's university system today.

Can I visit the Al-Qarawiyyin Library?

Only in a limited way. The library, one of the oldest in the world, was restored and reopened in 2016, and parts of the building have at times been accessible to the public, including a small gallery or cafe. But the reading rooms and the manuscript collection are generally reserved for scholars and researchers, and public opening has been intermittent. Check current arrangements locally, through your riad or a licensed guide, rather than assuming walk-in access.

How do I find the Kairaouine in the Fes medina?

There is no grand signposted entrance, so aim for nearby landmarks. Walk down from Bab Bou Jeloud toward the centre and look for the Al-Attarine Medersa, the Zaouia of Moulay Idriss II and especially Place Seffarine, the coppersmiths' square, which borders the mosque - you can often hear the hammering before you see it. Many visitors reach it most easily with a local guide on a half-day medina walk.

Does it cost anything to see the Kairaouine?

Viewing the mosque from its gates is free, as it is a place of worship rather than a ticketed monument. Your only spend nearby would be entry to the medersas you can go into, such as the Al-Attarine or Bou Inania at roughly 30-50 MAD, or a mint tea at a rooftop cafe for a view over the green-tiled roofs. Circling the gates takes 20 to 30 minutes.

What should I see near the Kairaouine?

The area around it is the richest in the medina. Combine your visit with the Al-Attarine Medersa right next door, Place Seffarine and its coppersmiths, the Nejjarine fountain and wood museum, the grand Bou Inania Medersa up the hill, and the Chouara tanneries a short walk east. Since you cannot enter the mosque itself, this dense quarter of colleges, craft squares and workshops is where the real experience lies.

Who founded the Kairaouine and why does it matter?

It was founded in 859 CE by Fatima al-Fihri, a woman from a family that had migrated to Fes from Kairouan in Tunisia, who used her inheritance to build a mosque and centre of learning for her community. That origin matters because it makes one of the world's most important seats of learning a woman's foundation, and because the institution never stopped teaching. Over eleven centuries it shaped scholarship in law, theology, grammar, astronomy and medicine across the Islamic world and beyond.

Plan it with a local expert

Travel Morocco with Serenity Morocco Tours

Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.

Moroccan-owned 100% Private Tours 100% private tours since 2018
Sahara Desert Luxury Expedition — Marrakech → Erg Chebbi, Morocco
from $2,011
5 days Marrakech → Erg Chebbi

Sahara Desert Luxury Expedition

Essential Morocco: Imperial Cities Circuit — Marrakech · Fes · Meknes · Rabat, Morocco
from $2,054
7 days Marrakech · Fes · Meknes · Rabat

Essential Morocco: Imperial Cities Circuit

Sahara to Sea: Morocco Complete — Full-country circuit, Morocco
from $5,978
14 days Full-country circuit

Sahara to Sea: Morocco Complete

Browse all 15+ private tours — from $924 →