The story everyone knows
In the ninth century, the familiar account runs, a young woman from Kairouan named Fatima inherited a fortune from her merchant father in Fez. She spent all of it on a mosque for her community, fasted every day until it was finished, and so founded al-Qarawiyyīn, which grew into the oldest university in the world. Her sister Maryam, the story adds, built the city’s other great mosque for the Andalusian quarter.
Versions of this account appear on museum walls, in documentaries and in thousands of social media posts. It is told to show what Muslim women achieved, and that purpose is a good one. But a story told for a good purpose still has to answer the question every historian asks first: how do we know?
One source, four and a half centuries later
Almost everything said about Fatima comes from a single chronicle: Rawḍ al-Qirṭās (“The Garden of Pages”) by the Moroccan historian Ibn Abī Zarʿ, written in the early fourteenth century, roughly 450 years after the events it describes. Traditional
No ninth-century document names her. There is no inscription, no endowment deed and no contemporary chronicle. Ibn Khaldūn tells the same story in his Kitāb al-ʿIbar, but he was writing in the same century and the same scholarly world, so his account repeats the tradition rather than confirming it independently.
Even within the tradition the details move. Some versions give Fatima a husband who died before her father; others mention only the father. Variation of this kind is a sign of a story that was retold many times before it was written down.
None of this proves that Fatima did not exist. It means that what we say about her must be labelled honestly, and that is what the rest of this article does.
What is firmly established
The world around the story is far better documented than the story itself.
Fez was founded in two stages: a settlement by Idrīs I (traditionally 789) and a second one across the river by his son Idrīs II around 809–810. It became the capital of the Idrisids, the first independent Islamic state in what is now Morocco. Established
The city then absorbed two large waves of migrants. Around 817–818 some 800 families arrived from Córdoba after a failed revolt against the Umayyads. Around 824 some 2,000 families came from Kairouan, the great city of Ifrīqiya in present-day Tunisia. Each community settled on one bank of the river, and the two quarters kept their names for centuries: ʿAdwat al-Andalus and ʿAdwat al-Qarawiyyīn. Established
The mosque’s name comes from this second community. And the society in which the story is set gave women full legal capacity to inherit, own and endow property through waqf. Women are documented as founders of endowments across the Islamic world. So the story of a woman funding a mosque is entirely plausible. What is missing is evidence that this particular woman funded this particular mosque. Established
The inscription in the cedar
During twentieth-century renovations, workers uncovered a foundation inscription carved in Kufic script on cedar panels above the mosque’s original prayer niche. It had been hidden under plaster for centuries. The French scholar Gaston Deverdun deciphered it. The inscription records the founding of “this mosque” by Dāwūd ibn Idrīs, a son of Idrīs II, in Dhū al-Qaʿda 263 AH, that is, July–August 877 CE. Established
Historians read it in two ways. Deverdun thought the panel might come from another mosque and have been moved to al-Qarawiyyīn later, when Idrisid relics carried prestige in Fez. Benchekroun argues it is the mosque’s own foundation inscription, plastered over in the twelfth century. If he is right, the earliest physical evidence points to an Idrisid prince, not a merchant’s daughter, and to a date nearly twenty years after the traditional 859. Disputed
Two sisters, two mosques
The tradition says Fatima’s sister Maryam founded the mosque of the Andalusians at the same time. Le Tourneau called this “perfect parallelism” too good to be true, and Bloom agrees that the symmetry belongs to legend: two pious sisters, two rival quarters, two great mosques. Stories that fit together this neatly are usually stories that were shaped. Disputed
Other well-loved details come from the same chronicle and carry the same weight: that every stone was quarried on the site so no one could question the purity of the wealth, and that Fatima fasted throughout the building work. These are the marks of a pious foundation story. We cannot confirm or refute them. Traditional
Mosque, madrasa, university
The strongest claim, that Fatima founded a university, runs into a second problem that has nothing to do with her. There is no continuous record of teaching at al-Qarawiyyīn from its foundation. Historians date the start of systematic teaching very differently:
- Abdelhadi Tazi found the earliest clear evidence of formal teaching in 1121.
- Mohammed al-Manouni linked the teaching role to the Almoravid period (1040–1147).
- Évariste Lévi-Provençal placed the madrasa function in the Marinid period (1244–1465).
At its height al-Qarawiyyīn taught Qur’an, Mālikī law, Arabic grammar and rhetoric, logic, medicine, mathematics and astronomy. Students sat in a circle around a teacher and, after years of study, received an ijāza, a personal licence from that teacher. There was no registration, no fixed course and no examination. That is a great tradition of learning. It is not the same institution as a European university, and it became a state university in the modern sense only in 1963. Established
UNESCO and Guinness World Records describe al-Qarawiyyīn as the oldest existing, continually operating educational institution in the world. Many historians of universities disagree that the word “university” fits before 1963. Both positions are held seriously. Disputed
How we describe it: al-Qarawiyyīn is the world’s oldest continuously operating institution of Islamic learning. It grew from a mosque founded in the mid-ninth century, and became a university in the modern sense in 1963.
The library
The claim that Fatima founded the library has no evidence behind it. The first purpose-built library was founded by the Marinid sultan Abū ʿInān Fāris in 1349, nearly five centuries after her traditional lifetime. Established
The library’s real history is remarkable enough. Its collections drew on manuscripts from Seville, Córdoba, Granada and Málaga. It holds early copies of Imām Mālik’s Muwaṭṭaʾ on gazelle parchment and a ninth-century Qur’an. Its restoration between 2012 and 2016, led by the architect Aziza Chaouni, deserves to be told on its own terms, not as “restoring what Fatima built”.
Why the story still matters
The historian Ian D. Morris has shown how claims about Fatima multiplied in the twenty-first century, often in reputable outlets and almost never with a source. She became a symbol, and symbols attract details.
What can be shown is not a single remarkable woman, but a society in which such a woman was possible.
That is still worth telling. Islamic law let women inherit, hold and give away wealth. Women did found mosques, schools and fountains through endowments, many of them better documented than Fatima. Her story, whether history or legend, points to that real and well-attested world. We think it honours her more to tell it accurately than to tell it large.
The claims, one by one
| Claim | Our verdict |
|---|---|
| Fatima inherited wealth from her father | Traditional Single source, about 450 years later. |
| She paid for and founded the mosque | Disputed No early record; an inscription names Dāwūd ibn Idrīs. |
| She fasted until it was finished | Traditional A pious motif we cannot verify. |
| Her sister Maryam founded the Andalusian mosque | Disputed Specialists see the symmetry as legend. |
| She founded the world’s first university | Disputed Teaching is documented centuries later; “university” applies from 1963. |
| She founded the library | Disputed No evidence; the library dates from 1349. |
| Kairouanese families settled in Fez and gave the mosque its name | Established |
| Women could inherit and endow property | Established |
Sources
- Ibn Abī Zarʿ al-Fāsī, al-Anīs al-muṭrib bi-rawḍ al-qirṭās (early 14th century).
- Ibn Khaldūn, Kitāb al-ʿIbar (14th century).
- Gaston Deverdun, on the Kufic foundation inscription of Dāwūd ibn Idrīs.
- Chafik Benchekroun, on the foundation of al-Qarawiyyīn and the historicity of Fatima al-Fihri.
- Péter T. Nagy, “al-Qarawiyyīn”, Encyclopaedia of Islam, THREE (Brill).
- Roger Le Tourneau, Fès avant le protectorat.
- Jonathan M. Bloom, on the architecture of the Islamic West.
- George Makdisi, The Rise of Colleges: Institutions of Learning in Islam and the West.
- Ian D. Morris, “Fatima al-Fihri: Modern Legends, Medieval Sources”.
Found an error? We correct openly. Write to us through the contact page and we will review it against the sources.