Discovering...
Discovering...

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.
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
Leila Tazi· Fes, Culture & Cuisine Editor
Fes-based journalist with a food and crafts obsession, Leila spends her weeks between the tanneries, the Qarawiyyin quarter and the kitchens of the old city. She covers Fes, Meknes, food and Moroccan culture. Fes · 11+ years covering Morocco
Published 2 August 2025 Last updated 17 July 2026
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.
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.
| Viewpoint | What you see | Note |
|---|---|---|
| Bab al-Ward (main west gate) | Courtyard, marble paving and central fountain | The best single view; line up along the axis |
| Northern lane doorways | Glimpses of pillared naves and chandeliers | Clearest when doors open for prayer |
| Place Seffarine side | Scale of the walls and minaret above | Combine with the coppersmiths' square |
| Al-Qarawiyyin Library entrance | The restored library facade | Interior access limited; ask locally |
| Rooftop cafe terraces nearby | Green-tiled roofs from above | Best overview; buy a mint tea |
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.
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.
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.
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.
| Sight | Approx. walk | Entry | Can you go in? |
|---|---|---|---|
| Al-Attarine Medersa | 1-2 min | ~30 MAD | Yes |
| Place Seffarine (coppersmiths) | 2-3 min | Free | Open square |
| Nejjarine Museum & Fountain | 5 min | ~20-30 MAD museum | Museum yes |
| Bou Inania Medersa | 12-15 min uphill | ~30-50 MAD | Yes |
| Chouara Tanneries | 8-10 min | Free (tip) | Terrace views |
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.
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.
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.
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.
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.
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.
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
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,011Sahara Desert Luxury Expedition
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete
Attractions & Heritage
14th-c. spice-market medersa: zellige/stucco masterpiece near Kairaouine.
Read guideAttractions & Heritage
The one Fes medersa non-Muslims may enter: architecture, water clock opposite, tickets.
Read guideAttractions & Heritage
Wood-arts museum in a restored funduq + famous mosaic fountain and rooftop.
Read guideAttractions & Heritage
How to explore Fes el-Bali without getting lost: the main spines, offline maps, guide-or-solo, and safety after dark.
Read guideAttractions & Heritage
From the Hassan II Mosque and the Koutoubia to the Qarawiyyin — the great mosques, which you can enter and how to visit respectfully.
Read guideAttractions & Heritage
How to visit the Chouara and Sidi Moussa tanneries: the best terraces, the dyeing process, avoiding the hard sell and buying leather.
Read guide