Al-Qarawiyyin Mosque and University
Fez, Morocco · Landmark
About Al-Qarawiyyin Mosque and University
Founded in 859 AD by Fatima al-Fihri, Al-Qarawiyyin Mosque and University is recognized as the world's oldest continually operating institution of higher learning. Nestled in the heart of the Fez medina, it has stood for over a millennium as a vital intellectual and spiritual beacon of the Islamic world. While the main prayer halls remain active places of worship, the complex stands as one of Morocco's most revered architectural and historical treasures.
Don't miss
- Glance through the ornate wooden portals to admire the vast marble courtyard and Andalusian-style ablution fountains.
- Admire the intricate Merinid-era stucco carvings and green glazed-tile roofs from surrounding alleys.
- Visit the adjacent Al-Qarawiyyin Library, which preserves one of the most prestigious collections of ancient Islamic manuscripts in the world.
- Head up to an overlooking medina rooftop terrace to view the sheer scale of the sprawling mosque complex and minaret.
Plan your visit
Visit in the morning between prayer times when the outer doorways are frequently propped open and medina foot traffic is lighter. Spring and autumn provide the most comfortable weather for navigating the medina on foot.
Access to the exterior doorways is free, though entrance into the active mosque is strictly reserved for Muslims. Access to the historic library may require a separate fee or advance arrangement with a licensed guide.
The complex is located deep within the car-free Fes el-Bali medina. Take a petit taxi to Place R'cif or Bab Bou Jeloud and continue on foot through the central souks toward the center of the old city.
Tips for visiting
- Dress conservatively with shoulders and knees covered out of respect for the surrounding sacred perimeter.
- Respect the religious boundaries by not attempting to step past the raised threshold markers at the entrances if you are not Muslim.
- Combine your visit with the nearby Al-Attarine Madrasa, which is open to all visitors and features identical decorative architecture.
- Hire an official guide at the medina gates if you want to avoid getting lost in the labyrinth of alleys leading to the mosque.
- Bring a zoom lens or high-resolution camera to photograph the courtyard details from the open entrance doors.
Al-Qarawiyyin Mosque and University FAQ
Can non-Muslim travelers enter Al-Qarawiyyin Mosque?
Non-Muslims are not permitted inside the active mosque and courtyard. However, travelers are welcome to look respectfully through the open doorways and view the interior architecture from the outside.
Can tourists visit the famous university library?
The ancient library has been restored and is occasionally open to visitors, though access rules can vary depending on research activities and preservation needs. It is best to inquire locally or visit with a licensed guide who can arrange access.
Who founded the institution?
It was founded in 859 AD by Fatima al-Fihri, a devout woman who used her family inheritance to build a mosque and community school. The institution expanded over centuries to teach sciences, astronomy, mathematics, and Islamic jurisprudence.
Where is the best view of the entire building?
Because the mosque is surrounded by narrow medina alleys, ground-level views are limited. The best panoramas are from rooftop cafes and carpet shops located in the surrounding souks, which offer clear vistas of the green tiled roofs.
More things to do in Fez
Chouara Tannery Landmark
Watch leather artisans dye hides using traditional methods from surrounding rooftop viewing terraces.
Bab Bou Jeloud (The Blue Gate) Landmark
Admire the ornate tiled entrance that serves as the iconic gateway into the ancient medina.
Bou Inania Madrasa Landmark
Marvel at stunning examples of Marinid architecture, intricate cedar woodwork, and detailed zellij tilework.
Mellah (Jewish Quarter) Neighborhood
Stroll through historic alleys to see distinctive wooden balconies, the Jewish Cemetery, and Ibn Danan Synagogue.
Marinid Tombs Landmark
Hike or take a short taxi up the hill for sweeping panoramic views across the ancient medina at sunset.
Place Seffarine Neighborhood
Listen to the rhythmic hammering of coppersmiths crafting pots and cauldrons in this lively artisan square.
Dar Batha Museum Museum
Explore Moroccan arts and craftsmanship housed inside a former royal palace with a serene Andalusian garden.
AI-written guide, last updated 2026-10-09. Check opening times and ticket prices on the official website before you go. Photos: asharat, Giselleinmotion on Pixabay.