In the labyrinth of narrow lanes in Fès el-Bali, amid the hammering of coppersmiths and the scent of cured leather, you pass a tall carved wooden door standing slightly ajar between rows of workshops. Through the doorway a bright courtyard opens into view: a floor of blue and white glazed tiles, two delicate pavilions sheltering marble water basins, and white horseshoe arches leading into the cool shade of the prayer hall. From beneath the green-tiled roofs, the call to prayer spreads down the alleys as worshippers turn in through those doors.
Morocco is a country whose population is almost entirely Sunni Muslim following the Maliki school of jurisprudence. The library selects al-Qarawiyyin as the sole representative entry for Morocco because few places bind a nation's devotional life and scholarly life together so closely: for more than eleven centuries it has served both as the main congregational mosque of Fès and as a seat of instruction in the Qur'an, Islamic law, and the sciences. And it was founded through the endowment of a woman, Fatima al-Fihri.

IMosque, Madrasa, And The Woman Who Founded It
The name al-Qarawiyyin means belonging to the people from Kairouan (al-Qayrawan), the historic city in present-day Tunisia. In the 9th century, families from Kairouan settled on the western bank of the Fès River, and their quarter took that name. In French usage the name is spelled Karaouine, which is why the form al-Karaouine is also common.
According to the World History Encyclopedia, Fatima al-Fihri (c. 800 to 880), honored in tradition by the epithet Umm al-Banin as recorded by ICESCO, was born in Kairouan, inherited a substantial fortune after the deaths of her father, brother, and husband, and dedicated her wealth to charitable works. She laid the foundation of the mosque and madrasa on the first day of Ramadan in the year 859. Her sister Mariam founded the Andalusian Mosque on the opposite bank of the river. ICESCO notes that construction took place during the reign of the Idrisid ruler Yahya I, with Fatima volunteering her fortune to build it. Archnet records that the site began as a small neighborhood oratory before growing into the principal congregational mosque of the entire city.
In Islam, a mosque is linked with teaching and learning alongside daily worship. From the earliest centuries, students sat in circles around the columns of a mosque to hear masters expound the Qur'an and the sayings of the Prophet, known as hadith. Out of those study circles grew the madrasa, the college attached to a mosque. Al-Qarawiyyin is one of the oldest enduring examples of this tradition. According to the World History Encyclopedia and the Madain Project, its historic curriculum encompassed Qur'anic exegesis, Islamic jurisprudence, algebra, astronomy, medicine, philosophy, and many other disciplines.
Morocco follows the Maliki school of law, one of the four major legal schools of Sunni Islam, and al-Qarawiyyin has long stood as one of the foremost centers of Maliki jurisprudence in the Maghreb. The library notes this to situate the institution historically, without comparing legal schools against one another.
The phrase most frequently heard about this place is the oldest university in the world. It is important to state clearly who uses that designation. The World History Encyclopedia, the Madain Project, and Daily Sabah all cite UNESCO and Guinness World Records as recognizing al-Qarawiyyin as the oldest existing and continually operating educational institution in the world. That is the classification of those two organizations, which the library reports without adjudicating on its own.
It is also helpful to know that for most of its history the institution functioned as a mosque-madrasa rather than a university organized on the European corporate model. According to the World History Encyclopedia and Daily Sabah, it was incorporated into Morocco's modern state university system in 1963 and officially named the University of al-Qarawiyyin in 1965. Some historians therefore use the word university in a broad sense for its medieval teaching circles, while others reserve the term for the modern period. The two usages describe different aspects of the same history.
Fatima's native city of Kairouan is home to the Great Mosque of Kairouan, one of the oldest mosques in the Maghreb, so the very name al-Qarawiyyin links the two cities across North Africa. Meanwhile, every row of worshippers in the prayer hall at Fès faces the Kaaba at the center of Masjid al-Haram in Mecca: one is the supreme sanctuary of pilgrimage, and the other is an enduring seat of scholarship in the Islamic West.
IIEleven Centuries Of Expansion Across Successive Dynasties
From a modest neighborhood prayer hall, the mosque expanded under the successive dynasties that ruled Fès, each adding its own layer of architecture. The milestones below record its founding, enlargements, decoration, and restorations according to Archnet, the World History Encyclopedia, the Madain Project, and UNESCO.
- 857 or 859Fatima al-Fihri founds the mosqueArchnet gives the founding year as 857. The World History Encyclopedia records construction from 857 to 859 with the foundation laid on the first day of Ramadan in 859, and ICESCO records 1 Ramadan 245 AH. See the historical note below.
- 10th centurySquare stone minaretA square stone minaret was erected with funds provided by Abd al-Rahman III, the first Umayyad caliph of al-Andalus, according to Archnet.
- 1134 to 1143Almoravid expansionThe Almoravid ruler Ali ben Yusuf enlarged the mosque into a T-shaped plan with a raised central aisle running perpendicular to the qibla wall, according to Archnet. The muqarnas vaulting over the mihrab dates from this campaign.
- 1289The Anaza screenThe carved wooden Anaza screen of the mosque was crafted in 1289, according to the Madain Project.
- 1606 to 1623Saadian courtyard and pavilionsThe Saadian sultan Abdallah ibn al-Shaikh paved the courtyard with blue and white glazed tiles, installed a marble ablution basin, and raised two ornate fountain pavilions at either end of the courtyard, according to Archnet.
- 1963Entry into the state university systemThe teaching institution of the mosque was integrated into Morocco's modern state university system, according to the World History Encyclopedia and the Madain Project.
- 1981UNESCO World Heritage SiteThe Medina of Fès, including Fès el-Bali where the mosque stands, was inscribed under criteria (ii) and (v). UNESCO notes its founding in the 9th century and its zenith in the 13th and 14th centuries.
- 2007 and 2017Recent restorationsArchnet records two restoration campaigns completed in 2007 and 2017, the latter led by architect Aziza Chaouni for the historic library.
Founding year is a point where reference sources differ slightly. Archnet gives 857. The World History Encyclopedia gives c. 857 to 859 and states that the foundation was laid in 859. ICESCO gives 1 Ramadan 245 AH, which corresponds to 859 CE, and Daily Sabah simply gives 859. The library writes 857 to 859 as in the summary table: 857 may mark initial land preparation and 859 the formal foundation, though sources do not specify, so both dates are presented.
Founder: The World History Encyclopedia and Daily Sabah credit Fatima al-Fihri. ICESCO states that construction began under the Idrisid ruler Yahya I with Fatima volunteering her wealth to build it. The two accounts complement each other. Notable scholars: sources list slightly different names. The World History Encyclopedia lists Ibn Khaldun, Maimonides, and Leo Africanus, while ICESCO also mentions Averroes (Ibn Rushd) and al-Idrisi. The library notes that associations with certain medieval scholars rest partly on traditional accounts.
IIIT-Plan Prayer Hall, Saadian Courtyard, And Green Roofs
Al-Qarawiyyin does not stand isolated on an open plaza but is woven into the dense fabric of the medina, surrounded on all four sides by houses and markets, with multiple doors opening directly onto the surrounding alleys. Seen from above, only its rows of pitched green-tiled roofs and its square minaret stand out. The Madain Project records that the mosque covers roughly half a hectare and holds about 22,000 worshippers.
Its layout follows the classic hypostyle mosque plan of the Maghreb: a broad prayer hall divided into parallel aisles by rows of columns and arches, preceded by an open interior courtyard. The Almoravid expansion introduced a T-shaped plan, as noted by Archnet: a higher central nave runs perpendicular to the qibla wall and meets a transverse aisle running along that wall. The central axis receives the richest decoration and leads straight to the mihrab.
Paved with blue and white glazed tiles in the Saadian period, with a central marble basin and two pointed-roof fountain pavilions at either end, according to Archnet. ICESCO also highlights the circular fountain at the center of the courtyard.
The qibla prayer niche crowned by stalactite vaulting (muqarnas), dating from the 12th-century Almoravid expansion according to the Madain Project. ICESCO also notes an antique wooden mihrab.
ICESCO records that the mosque preserves a wooden pulpit (minbar) from the Almoravid era and a grand chandelier from the Almohad era.
A square stone call-to-prayer tower erected in the 10th century with funds from Abd al-Rahman III, according to Archnet, following the classic square minaret form of the Maghreb.
Daily Sabah notes that the library holds over 4,000 rare manuscripts, including historic Qur'ans (such as a 1602 Qur'an donated by the Saadian sultan Ahmad al-Mansur according to the World History Encyclopedia), Ibn Khaldun's Muqaddimah and Al-'Ibar, and a copy of Imam Malik ibn Anas's al-Muwatta written on gazelle parchment. Its rehabilitation under architect Aziza Chaouni began in 2012 and completed all phases in 2017.
| Feature | Figure | Source |
|---|---|---|
| Founding date | 857 to 859 | Archnet gives 857, World History Encyclopedia and ICESCO give 859 |
| Area | Around half a hectare | Madain Project |
| Capacity | Around 22,000 people | Madain Project |
| Almoravid expansion | 1134 to 1143 | Archnet |
| Saadian courtyard and pavilions | 1606 to 1623 | Archnet, reign of Sultan Abdallah ibn al-Shaikh |
| Manuscripts in the library | Over 4,000 | Daily Sabah |
IVLandform And Orientation
One point must be stated clearly before reading this section: the builders of al-Qarawiyyin knew nothing of feng shui, and Islam has no such practice. The sole orientation required of any mosque is the qibla, facing the Kaaba in Mecca. From Fès, Mecca lies nearly due east, and the qibla wall of the mosque, like many early mosques in the Maghreb, faces southeast. Every expansion across eleven centuries preserved that axis.
The library reads the terrain of Fès below through the lens of traditional Sino-Vietnamese geomancy for comparative reflection. None of the historical records of the mosque use these terms.
First is the valley basin and the river. Fès el-Bali rests in the valley of the Fès River, ringed by hills on all four sides, with houses stepping down the slopes toward the riverbed. The river divides the old city into two banks: the Qarawiyyin bank and the Andalusian bank, corresponding to the two mosques founded by the two sisters. Traditional geomancy calls a basin sheltered by hills with running water at its center a site that stores wind and gathers water, a setting favored by many historic towns in Vietnam as well.
Second is the low hollow at the center. The mosque sits in the lower bowl of the medina where sloping lanes converge. In traditional Vietnamese reading, this is the point where both vital energy and human footsteps gather, like the navel of the city. The builders of Fès placed the mosque here because it was the heart of the residential quarter and the markets, where scholarship and trade have lived side by side for centuries.
Third is the inner courtyard and water. The mosque has no outer forecourt opening onto a street. Its bright hall (minh đường) lies within, formed by the tiled courtyard with its central basin and twin fountain pavilions. Readers familiar with traditional Vietnamese courtyard houses and skywells will recognize this inward gathering of light and air. The Saadians built the basins for ritual ablutions before prayer, whereas the geomantic term belongs to the library.
Finally, color. The green glazed roof tiles and the blue-and-white courtyard tiles lean toward Wood and Metal in the five-element scheme, set against whitewashed walls and terracotta brick. In Islamic art, green is associated with paradise, while all five-element terminology here is the library's comparative reading.
VObservances On The Hijri Calendar In A Maliki Mosque
The liturgical rhythm of al-Qarawiyyin follows the Islamic Hijri calendar, a purely lunar reckoning that is roughly eleven days shorter than the solar year, so Ramadan and the two Eid festivals move gradually through the seasons without fixed Gregorian dates. As the principal congregational mosque of Fès, the sanctuary is fullest at Friday midday prayer, on the nights of Ramadan, and on the two Eids. The table lists calendar dates only, not clock hours.
| Observance | Calendar | Description |
|---|---|---|
| Five daily prayers | Daily, timed by the sun | Dawn, midday, afternoon, sunset, and night prayers, interspersed with study circles. |
| Friday congregational prayer | Weekly | Congregational prayer with the sermon (khutbah), when the prayer hall and courtyard are fullest. |
| Ramadan and Laylat al-Qadr | Hijri calendar, ninth month | Month of daytime fasting, with nightly Tarawih prayers and recitation of the entire Qur'an. In Morocco, the night of 27 Ramadan is traditionally observed as Laylat al-Qadr, commemorating the first revelation of the Qur'an. |
| Eid al-Fitr | Hijri calendar, 1 Shawwal | Festival marking the end of the fast, celebrated with morning congregational prayer. |
| Eid al-Adha | Hijri calendar, 10 Dhu al-Hijjah | Festival of Sacrifice coinciding with the Hajj pilgrimage to Mecca, when families share meat with those in need. |
| Mawlid | Hijri calendar, 12 Rabi al-Awwal | Commemoration of the Prophet's birthday, observed as a public holiday across Morocco with recitations of poetry praising the Prophet. |
The library has not found sources documenting Vietnamese community activities in Fès or at this mosque, and therefore records none.
VILocation And How To Get There
- Address
- Medina Fès el-Bali, thành phố Fès, vùng Fès-Meknès
- Getting there
- The mosque stands at the center of the Medina of Fès el-Bali in the city of Fès, Fès-Meknès region, beside the Seffarine square of the coppersmiths. Motor vehicles cannot enter the medina, so visitors walk down along the main lanes from the Bab Bou Jeloud gate.
- Coordinates
- 34.0649, -4.9734
In accordance with the custom governing active mosques in Morocco, non-Muslims are not permitted to enter the prayer hall of al-Qarawiyyin. Visitors may pause in the alleyways outside to look into the tiled courtyard through the wide open doors, taking care not to block worshippers entering for prayer. Worshippers remove their shoes before stepping inside, dress modestly covering arms and legs, and women cover their hair. Do not photograph people at prayer through the doorways.
Nearby places in the library
VIIContribute To This Page
Contribute photos, information or video for University of al-Qarawiyyin
Góp ảnh, thông tin hoặc video cho Thánh đường al-Qarawiyyin, FèsEveryone is welcome to enrich this page: a photo you took, a detail the page misses, a short video. Every contribution is read and answered.
Thầy Ưng Khiêm mời cộng đồng cùng làm giàu trang này. Ảnh chụp tận nơi, một chi tiết lịch sử chưa được nhắc, một đoạn video ngắn: mọi đóng góp đều được đọc và trả lời.
No community contribution yet. You could be the first. Chưa có đóng góp nào từ cộng đồng. Bạn có thể là người đầu tiên.
?Quick Questions
Is al-Qarawiyyin the oldest university in the world
According to the World History Encyclopedia, the Madain Project, and Daily Sabah, both UNESCO and Guinness World Records recognize al-Qarawiyyin as the oldest existing and continually operating educational institution in the world. For most of its history it functioned as a madrasa attached to the mosque before entering Morocco's state university system in 1963.
Who founded the al-Qarawiyyin Mosque
Fatima al-Fihri (also honored as Umm al-Banin), born in Kairouan around the year 800, inherited her family's wealth and dedicated it to charitable endowment. The World History Encyclopedia records that she laid the foundation on the first day of Ramadan in 859. ICESCO notes that construction took place under the Idrisid ruler Yahya I with Fatima volunteering her fortune.
Was al-Qarawiyyin founded in 857 or 859
Reference sources record slightly different dates. Archnet gives the founding year as 857. The World History Encyclopedia gives 857 to 859 with the foundation laid in 859, and ICESCO gives 1 Ramadan 245 AH, which corresponds to 859 CE. The library states 857 to 859 and cites both dates.
Can non-Muslim tourists enter the al-Qarawiyyin Mosque
Non-Muslims are not permitted inside the prayer hall, following the rule for active mosques across Morocco. Visitors can admire the Saadian tiled courtyard and fountain pavilions from the open doorways along the surrounding lanes, provided they do not obstruct worshippers.
Which school of Islamic law does al-Qarawiyyin follow
Al-Qarawiyyin belongs to Sunni Islam and follows the Maliki school of jurisprudence practiced by the vast majority of Moroccans, serving for centuries as a major center of Maliki legal scholarship in the Maghreb. Its principal annual festivals are Eid al-Fitr and Eid al-Adha on the Hijri calendar.