
Al-Qarawiyyin Mosque & University
جامعة القرويين
About Al-Qarawiyyin Mosque & University
Al-Qarawiyyin stands as humanity's oldest continually operating degree-granting university, predating the University of Bologna (1088) and Oxford (1096) by over two centuries. Founded in 859 AD by Fatima al-Fihri, a wealthy merchant's daughter, the institution began as a mosque and expanded into a major center of learning that influenced intellectual development across the medieval world.
The complex encompasses a vast mosque capable of holding 22,000 worshippers, making it North Africa's largest. The architectural ensemble features 270 columns, intricate zellige tilework, carved stucco, and one of Morocco's finest medieval libraries containing manuscripts dating back 1,200 years. Recent restoration by architect Aziza Chaouni has opened parts of the library to visitors for the first time.
Throughout its history, Al-Qarawiyyin educated scholars who transformed human knowledge. Pope Sylvester II studied here, introducing Arabic numerals to Europe. Jewish philosopher Maimonides and Muslim polymath Ibn Khaldun (founder of sociology) walked these halls. The curriculum traditionally covered Islamic law, grammar, rhetoric, logic, medicine, mathematics, astronomy, chemistry, and Sufi mysticism.
Today, Al-Qarawiyyin continues as both a functioning mosque and university, though most academic programs have relocated to modern facilities. The historic library, containing 4,000 rare manuscripts including a 9th-century Quran, reopened in 2016 after careful restoration.
Historical Context
Fatima al-Fihri founded Al-Qarawiyyin in 859 AD using her inheritance from her merchant father, who had emigrated from Kairouan (Tunisia). She reportedly fasted throughout the entire construction period, breaking fast only when the mosque was complete. Her dedication established one of the Islamic world's most enduring institutions.
The university's golden age spanned the 10th to 12th centuries when Fes served as the intellectual capital of the western Islamic world. Scholars from across Africa, the Middle East, and even Christian Europe came to study. The institution pioneered academic practices later adopted by European universities, including structured curricula, academic degrees, and professorial chairs.
The library accumulated manuscripts through centuries of scholarly activity and royal patronage. It contains the world's oldest complete astronomical treatise, original works by Ibn Rushd (Averroes), and the earliest surviving copy of Ibn Khaldun's groundbreaking Muqaddimah. Many manuscripts influenced European Renaissance thinking through translations made in Toledo and Sicily.
French colonial authorities initially disrupted the institution but later recognized its cultural importance. Since independence, Morocco has invested in restoration while adapting Al-Qarawiyyin's educational mission to modern needs.
Highlights
What to See
- Restored medieval library (limited access)
- Courtyard with marble fountain
- Intricate zellige tilework throughout
- Historic prayer hall (non-Muslims: exterior only)
- Ancient astronomical instruments
- Carved cedarwood ceilings
- Original mihrab (prayer niche)
- Neighboring Attarine Madrasa
Photography Tips
Best Time to Shoot
Mid-morning when courtyard is illuminated
Best Locations
- Doorway glimpses from street
- Neighboring Attarine Madrasa for similar architecture
- Rooftop cafes for exterior views
- Library courtyard (if permitted)
Pro Tips
- Photography inside mosque prohibited
- Library photography requires special permission
- Capture architectural details from doorways
- Visit Attarine Madrasa for photogenic similar style
- Respect this as an active place of worship
Travel Tips
- Book library tours well in advance through official channels
- Visit Attarine Madrasa next door for similar accessible architecture
- Respect prayer times - avoid visiting during calls to prayer
- Dress modestly even when viewing from outside
- Hire a guide to explain the historical significance
- The nearby Seffarine Square offers glimpses through doors
- Consider this a contemplative rather than photographic visit
- The surrounding medina provides context for the university's importance
Photo Gallery

The historic courtyard with marble fountain

The restored medieval library

Intricate zellige and carved stucco

The university complex from above
Visiting Information
Location
Fes-Meknes
34.0640°, -4.9732°
Nearby Attractions
Tours that Visit
Experience Al-Qarawiyyin Mosque & University as part of a guided tour
Plan Custom TourAccessibility
- Exterior viewing possible
- Interior access very limited
- Historic structure not wheelchair accessible
- Cobblestone surroundings challenging