Al-Qarawiyyin Mosque and University, Fez

Al-Qarawiyyin Mosque and University

Fez, Morocco · Landmark

Time needed45 minutes to 1 hour
TypeLandmark
CityFez
CountryMorocco

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

Best time to go

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.

Tickets

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.

Getting there

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

Visiting Fez?

Get a day-by-day plan with this place, flights and hotels.

Plan my trip

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.