Discovering...
Discovering...

Non-Muslims cannot enter, but the carved doorways, rooftop viewpoints and the ancient library make the exterior circuit one of the medina's most rewarding walks. Here is how to do it properly.
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 30 July 2024 Last updated 10 March 2026
The direct answer is no — non-Muslims have not been permitted inside the Kairaouine Mosque since 1948, when Morocco's government formally closed its major mosques to non-worshippers. That rule is applied consistently and respectfully enforced. But if you walk away at that point, you miss most of the story.
The Al-Qarawiyyin complex — mosque, madrasa and library combined — covers roughly 3,000 square metres at the heart of Fes el-Bali. Founded in 859 CE by Fatima al-Fihri, a woman of Arab Tunisian origin who inherited her father's fortune and chose to spend it on a school for her community, it is recognised by UNESCO as the world's oldest continuously operating institution of higher learning. That context alone makes standing in front of its carved cedarwood doors feel like something.
What you can do: walk the exterior circuit, photograph the monumental doorways at different times of day, climb the Al-Attarine Madrasa for a rooftop view over the green-tiled roof, watch the neighbourhood rhythms at the small squares near each entrance, and — if the timing aligns — arrange a visit to the recently restored library. The hour or so you spend on this circuit is among the medina's most atmospheric, and it costs almost nothing.
Founded
859 CE by Fatima al-Fihri
Status
World’s oldest university (UNESCO)
Entry for non-Muslims
Not permitted (exterior free)
The mosque has fourteen entrances. Three of them are genuinely special and easy to find; the rest are secondary side gates in narrow lanes. Here are the three to prioritise.
Eastern entrance
The most photographed façade. Cedar wood panels with brass nail-head details face onto a small square where locals rest on stone benches. Stand here at prayer time and the muezzin call resonates off every wall.
Near Al-Attarine Madrasa
Directly opposite the Al-Attarine Madrasa entrance. The contrast of the two ornamental screens — mosque door in carved cedarwood, madrasa entrance in stucco — makes this the best single stop for architectural comparison.
Off Talaa Kebira
During prayer times a door occasionally stands ajar long enough to glimpse the zellige courtyard fountain and the colonnaded prayer hall beyond. You will not enter, but the geometry visible in those few seconds is extraordinary.
Timing tip: The five daily prayers — particularly Fajr (dawn), Dhuhr (noon) and Asr (mid-afternoon) — bring worshippers streaming through the doors. Watching that rhythm, and stepping aside respectfully as people pass, gives the visit a texture no interior tour can replicate.

The exterior zellige dados and cedarwood screens are among the finest craft work in the medina — and they are visible to everyone.
You cannot see the interior, but the mosque's roofscape — green glazed tiles punctuated by a square minaret — is one of Fes's most iconic views. These three spots deliver it.
| Spot | Access / Cost | What you see |
|---|---|---|
| Rooftop of the Al-Attarine Madrasa | Pay entry at the madrasa (indicative 70 MAD / ~$7) | Climb to the upper terrace and look south over the green-tiled minaret and the vast flat roof of the mosque complex. Best in morning light before 10 am. |
| Terrasse de la Mosquée café | Free entry; buy a tea or coffee (indicative 25–40 MAD) | A rooftop café sits almost level with the mosque roof. The angle is slightly obstructed but close enough to photograph the minaret against the medina skyline without a wide-angle lens. |
| Riad rooftop on Rue Sarraj | Ask your riad — many grant roof access to guests | The narrow streets immediately north of the mosque are lined with riads whose terraces look directly at the minaret. If you are staying in Fes el-Bali, your accommodation may be your best vantage point. |
Attached to the mosque complex is the Kairaouine Library, which holds around 4,000 manuscripts — among them a 9th-century Quran written on camel-skin parchment, one of the oldest in existence. The building was restored and reopened in 2016 by Moroccan-Canadian architect Aziza Chaouni, who preserved the original cedar shelving and zellige floors while adding humidity-controlled storage.
Public access to the library is restricted and varies year to year. It is not a drop-in attraction; walk-in visits are not offered. Occasionally it opens for academic delegations or small tour groups coordinated through the Ministry of Endowments. If this is a priority, contact your tour operator or the Fes tourism office well ahead of your trip and ask about arranged access. Do not count on it — but do not assume it is impossible.
The exterior of the library building — facing a small square east of the main mosque — is worth seeing even without entry. The restored woodwork and the understated entrance contrast with the ornamental exuberance of the madrasa doorways nearby, and it is a quieter corner of the neighbourhood.
Photographing the doorways from outside is completely fine. Do not photograph people entering or exiting the mosque during prayer without asking. Local women in particular may not want to be in your frame — the general Morocco rule of asking first applies here especially. A small gesture of acknowledgement goes a long way in a neighbourhood where tourists pass every few minutes.
The Kairaouine complex sits at the geographic and spiritual heart of Fes el-Bali. Finding it on a map is easy; finding it on foot is not. The medina has over 9,000 lanes, many unnamed, and the signage is inconsistent at best.
Walk down Talaa Kebira — the medina’s main artery — for roughly 10–15 minutes. You’ll pass the Bou Inania Madrasa on your right, then the spice souk of Souk el-Attarine. The Al-Attarine Madrasa entrance appears on your left, almost opposite a main mosque doorway. That junction is the centre of the visit.
Even experienced medina walkers often miss the secondary doorways and the library square on a first visit. A private walking tour that includes the Kairaouine circuit typically runs 90–120 minutes and covers the tanneries, Al-Attarine and the mosque exterior in a single logical loop. A guide also handles the photography etiquette naturally.
Morning (8–11 am) gives the best light on the eastern façade and avoids the worst of the midday crowd. If you want to catch Friday prayer atmosphere, note that access to some lanes around the mosque is more restricted on Fridays — approach respectfully or come another day.
No. The Kairaouine Mosque — formally the University of Al-Qarawiyyin — has been closed to non-Muslims since 1948, when a decree reserved all major Moroccan mosques for worshippers only. The same rule applies to Hassan II Mosque in Casablanca and nearly every mosque in the country, with a handful of exceptions. You can stand at the ornate doorways and, from rooftop terraces nearby, look across the green-tiled roof and the minaret, but you will not pass inside.
It depends on your definition. The institution was founded in 859 CE by Fatima al-Fihri, making it the oldest continuously operating higher educational institution in the world according to UNESCO and the Guinness Book of Records. If you use the narrower European definition of a "university" (granting formal degrees with a fixed curriculum), there is room for debate — but by any reasonable measure, learning has taken place here for over 1,100 years, and the claim is not marketing spin.
From street level you can see the elaborately carved cedarwood doors at several entrances, tiled zellige dados along the outer walls, and — when doors open briefly at prayer times — glimpses of the marble-paved courtyard and ablutions fountain inside. From rooftop terraces at the Al-Attarine Madrasa and nearby cafés you can look over the mosque's green-tiled roof and photograph the square minaret. The adjacent Kairaouine Library, restored in 2016 by architect Aziza Chaouni, sometimes opens for small group visits by arrangement.
The Al-Attarine Madrasa terrace (entry indicative 70 MAD / ~$7) is the single best viewpoint: you look directly at the minaret from almost the same height. The rooftop café called Terrasse de la Mosquée offers a slightly lower angle over a mint tea. Several riads on Rue Sarraj and the lanes immediately north of the mosque also have terraces with clear sightlines — ask your host. First light and the golden hour before sunset produce the warmest colours on the tilework.
Rarely, and not as a walk-in attraction. The library holds some 4,000 manuscripts including a 9th-century Quran written on camel skin, and public access has historically been extremely restricted. Since the 2016 restoration it opens occasionally for academic delegations and sometimes for small guided groups. If you are deeply interested, contact the Fes medina authorities or a specialist cultural tour operator well in advance. For most visitors, the exterior of the library building — facing a small square east of the mosque — is as close as you will get.
Very close. The outer walls of the mosque complex sit right on the narrow lanes of Fes el-Bali, so you walk alongside tiled exterior walls, pass directly in front of the carved cedarwood doors, and stand in the small squares that open at each entrance. In Fes's dense medina there is no courtyard buffer or plaza to keep you at distance. What you cannot do is cross the threshold into the prayer hall. A guided walking tour is the most efficient way to find each doorway — the medina's unlabelled lanes disorient most first-time visitors.
Budget 45–90 minutes for the exterior circuit, which takes in the main doorways, a stop at Al-Attarine Madrasa for the rooftop viewpoint, and a tea at a nearby café. If you combine it with the Bou Inania Madrasa (a 10-minute walk along Talaa Kebira) and the adjacent spice souks of Souk el-Attarine, a comfortable half-day disappears easily. A guide saves you from missing half the doorways — the lanes narrow to less than a metre in places and it is easy to walk past an entrance without realising.
Plan it with a local expert
Crafting extraordinary journeys through Morocco's timeless landscapes. 100% private journeys, handcrafted around you.
from $2,054Essential Morocco: Imperial Cities Circuit
from $5,978Sahara to Sea: Morocco Complete