The Achievement
In 859 CE, in the city of Fez, Morocco, an institution opened its doors that has not closed them since. For more than 1,160 years, through the Idrisid, Almoravid, Almohad, Marinid, Saadian, Alaouite, French colonial, and independent Moroccan periods, the University of al-Qarawiyyin has operated continuously. Guinness World Records describes it as "the oldest existing, and continually operating educational institution in the world." UNESCO, in its World Heritage Sites entry for the Medina of Fez, calls it "the oldest university in the world."
The person credited with its founding is Fatima al-Fihri, the daughter of a merchant who had emigrated from Kairouan (in present-day Tunisia) to Fez. She used her inherited wealth to endow the mosque complex as a waqf, an Islamic charitable trust structured so that the property could never be sold or absorbed by any future ruler. That legal decision is one of the main reasons the institution is still standing.
Two honest qualifications belong alongside that recognition. The founding story rests on a single chronicle written roughly 450 years after the fact, and some historians question whether Fatima al-Fihri is a documented historical figure or an embellished legend. And the word "university" in the modern sense, with faculties, a rector, and degree programs, only applies from 1963, when Morocco reorganized the institution under its state university system. Both complications are worth understanding, not to diminish the record, but because the actual history is more interesting than the simplified version.
Who Was Fatima al-Fihri?
The historical record on Fatima al-Fihri is thin, and it arrives late. Our principal source is Ibn Abi Zar, a Moroccan historian who died between 1310 and 1320 CE. In his chronicle, Rawd al-Qirtas (The Garden of Pages), he describes Fatima al-Fihriya as the daughter of Mohammed al-Fihri al-Qayrawani, a prosperous merchant who had emigrated from Kairouan to Fez during the early Idrisid period. When her father died, and later her husband, Fatima and her sister Mariam inherited the estate. Fatima used her share to fund the al-Qarawiyyin mosque. Mariam built the al-Andalus Mosque in Fez simultaneously, which still stands.
Ibn Abi Zar adds a detail that conveys the personal devotion attributed to Fatima: she reportedly fasted every day from the start of construction until the mosque was completed. Whether historically accurate or pious embellishment, the detail suggests how she was remembered.
The problem is that Ibn Abi Zar was writing roughly 450 years after the founding event. He was recording oral tradition, not contemporary documentation. No deed of waqf, no administrative record, and no account written closer to 859 CE mentioning Fatima al-Fihri by name has been found. Modern historians treat his chronicle as relatively unreliable on specific personal details.
Historian Roger Le Tourneau noted that the perfect symmetry of two sisters each founding one of Fez's two most famous mosques is suspiciously tidy, more consistent with pious legend than documented history. Jonathan Bloom, a leading scholar of Islamic architecture, has stated the traditional founding story "belongs more to myth than to academic history." Chafik Benchekroun argues she is "quite possibly a legendary figure." The commonly cited birth year of around 800 CE and death year of around 880 CE are not from historical documents; they are modern inferences working backward from the founding date.
The fair summary: the founding of al-Qarawiyyin as an institution is not disputed. The institution is 9th-century. What is contested is the specific role of a woman named Fatima al-Fihri. Most mainstream sources, including UNESCO and Guinness, repeat the attribution. A minority of specialists challenge it. Both positions deserve acknowledgment.
The Waqf: Why This Institution Survived
Whatever one concludes about Fatima al-Fihri's historicity, the waqf structure used to found al-Qarawiyyin is historically attested and deserves attention. It is, in fact, one of the more important parts of the story.
A waqf is an Islamic perpetual charitable endowment. Under Islamic law, once property is dedicated as waqf, it cannot be sold, inherited, given away, or absorbed by a future ruler. The property is locked in permanent charitable use; only the income or the use-value flows to the designated beneficiaries. This gave al-Qarawiyyin an institutional durability that was genuinely unusual. No Marinid sultan, no French colonial administration, no political upheaval could legally dissolve it or claim its assets.
Compare that with what happened to comparable institutions in Europe and elsewhere during the same centuries: universities that lost royal patronage closed; monastic schools dissolved when dynasties changed; libraries burned when cities fell. Al-Qarawiyyin survived the same upheavals not because of luck but because of legal structure. The waqf created an institution that was, in a meaningful legal sense, owned by no one and therefore could be taken by no one.
Fez in 859 was the capital of the Idrisid dynasty, an Arab dynasty founded by Idris I, a descendant of the Prophet Muhammad, who established the city in 789 CE. The city was growing rapidly due to waves of immigration from Andalusia and from Kairouan. The Qayrawan immigrant community needed a place of worship. The al-Qarawiyyin mosque filled that function first; the attached teaching circles developed organically over the following generations.
What Was Taught: A Curriculum That Evolved Over Twelve Centuries
The curriculum at al-Qarawiyyin was not static across twelve centuries. It expanded, contracted, and shifted emphasis depending on the political and intellectual environment of each era.
In the early period (9th through 11th centuries), teaching was almost entirely religious: Quranic recitation and memorization, tafsir (Quranic exegesis), fiqh (Islamic jurisprudence, primarily in the Maliki school dominant in Morocco and West Africa), hadith (the sayings and actions of the Prophet), and Arabic grammar and rhetoric. Teaching happened in halaqas, study circles where students sat around individual scholars. No formal enrollment, no tuition, no graduation. What a student obtained was an ijaza, a personal license granted by the scholar certifying mastery of a particular text or discipline.
During the 12th through 14th centuries, the curriculum broadened considerably. The Islamic Golden Age brought new subjects: logic, mathematics, algebra, astronomy, medicine, botany, chemistry, history, geography, cartography, philosophy, and foreign languages including Greek and Latin. This was the era that drew scholars from across the Mediterranean world to Fez.
After the 14th century, the curriculum narrowed again toward religious sciences. By the late medieval period, al-Qarawiyyin was primarily a madrasa for Islamic jurisprudence and classical Arabic grammar, with particular strength in Maliki law. That focus has continued to the present day. Current students must memorize the Quran and demonstrate Arabic proficiency to gain admission. The modern curriculum includes French, English, and basic information technology alongside the core religious and legal sciences.
The "Oldest University" Claim: What the Recognition Actually Says
The Guinness World Records description is specific and deliberate: al-Qarawiyyin is "the oldest existing, and continually operating educational institution in the world." The key qualifiers are "continually operating" and "existing." This is different from claiming it was the first institution of higher learning ever founded, or that it invented the university concept.
The University of Bologna (1088 CE) is recognized as the oldest university in the Western world, founded 229 years after al-Qarawiyyin. Al-Azhar in Cairo, founded in 970-972 CE, predates Bologna but postdates al-Qarawiyyin by more than 110 years.
A persistent minority position in academic history holds that al-Qarawiyyin should not be called a "university" for the period before 1963. The argument is structural: the European medieval university was defined as a self-governing corporation of masters and students with legal standing, recognized degrees, and organized faculties. Al-Qarawiyyin operated differently. Scholars issued individual ijazas rather than institutional degrees. Governance was tied to mosque administration under dynastic control. There were no formal faculties until 1963.
The counter-argument is also legitimate: the European definition of "university" is itself culturally specific. Confining the word to that model treats a particular historical tradition as the only valid template. Al-Qarawiyyin functioned as an institution of advanced learning for over a thousand years before the 1963 reorganization. Whether that qualifies as a "university" is a definitional argument, not a factual one.
Both things can be held simultaneously: the "oldest university" recognition is genuine, endorsed by major international bodies. The modern degree-granting structure dates from 1963. The institution's age as a center of Islamic scholarship is beyond dispute.
The Library: A Separate Story Within the Story
The al-Qarawiyyin Library opened in 1359 CE, exactly 500 years after the mosque itself. It is one of the oldest libraries in the world, but the library and the mosque are not the same age; conflating them is a common error.
The library holds approximately 4,000 rare manuscripts and books. Among the most significant: a 9th-century Quran written in Kufic script, the oldest form of Arabic calligraphy, on camel skin; a handwritten manuscript on Islamic jurisprudence attributed to Ibn Rushd (Averroes); and Ibn Khaldun's Muqaddimah in a 14th-century manuscript copy. The library also holds works by al-Bukhari, one of the most important collectors of hadith in Islamic history.
By the early 21st century, the library was in serious physical trouble. Water infiltration from a blocked drainage system, cracked wood beams, broken tiles, and inadequate climate control threatened the manuscripts. In 2012, the Moroccan Ministry of Culture commissioned Moroccan-Canadian architect Aziza Chaouni to lead a rehabilitation project, funded by a Kuwait Arab Bank cultural preservation grant. Chaouni's team discovered an underground water channel running beneath the floors and built a canal system to redirect it. Solar panels, digital locks, a manuscript preservation lab, a reading room, and modern climate controls were added. The library reopened to the public in 2017.
There is a narrative symmetry in that timeline that is genuine rather than forced: an institution credited to a woman in 859 CE had its library restored to public access by a woman in 2017. The bookend spans 1,158 years.
Notable Figures: Separating the Documented from the Claimed
Al-Qarawiyyin is sometimes cited as the alma mater of an impressive list of medieval scholars. Some connections are well-documented. Others are asserted without evidence. The distinction matters.
Ibn Khaldun (1332-1406) is documented as having taught at al-Qarawiyyin. The author of the Muqaddimah, widely considered the founding work of sociology and historiography, his connection to al-Qarawiyyin is well-attested. The library holds a 14th-century manuscript copy of the Muqaddimah.
Leo Africanus (c. 1494-c. 1554), the Moroccan diplomat and geographer whose Description of Africa became a primary European source on the continent, attended al-Qarawiyyin according to his own writings. This connection is verified.
Ibn Rushd (Averroes, 1126-1198), the Andalusian philosopher and physician known in the West as the great commentator on Aristotle, is listed as an alumnus in some sources. The problem: Ibn Rushd was from Cordoba, studied primarily in Cordoba and Seville, and later served the Almohad court in Marrakesh. Primary scholarship on Averroes does not place him at al-Qarawiyyin. The connection is asserted in secondary sources but is not well-documented. Verdict: unverified.
Maimonides (Moses ben Maimon, 1138-1204), the Jewish philosopher and physician, did live in Fez from approximately 1159 to 1165, having fled the Almohad conquest of Andalusia. He composed early commentaries on the Mishnah during that period. Some sources claim he studied at al-Qarawiyyin. The claim appears to rest on the fact that he was in Fez when al-Qarawiyyin was the city's main center of learning. No documented evidence of formal attendance has been identified. Verdict: residence in Fez confirmed, formal al-Qarawiyyin connection not established.
Pope Sylvester II (Gerbert of Aurillac, c. 946-1003), the French monk who became the first French pope and is credited with introducing Hindu-Arabic numerals to Europe, appears on some al-Qarawiyyin alumni lists. Historical scholarship is clear that Gerbert studied in Catalonia and in Cordoba, not in Fez. No credible evidence places him at al-Qarawiyyin. Verdict: not supported.
Al-Qarawiyyin Today
The University of al-Qarawiyyin today operates under Morocco's Ministry of Awqaf and Islamic Affairs, with five campuses: two in Fez (the original madrasa and a sharia faculty), one in Agadir (sharia and Islamic jurisprudence), one in Marrakech (Arabic language studies), and one in Tetuan (theology and philosophy). Current enrollment is approximately 8,000 students.
The institution now admits both men and women. For most of its history, al-Qarawiyyin was male-only; the irony that a woman is credited with founding an institution that excluded women for over a millennium is noted in contemporary scholarship but rarely centered in popular accounts.
Admission still requires memorization of the Quran and demonstrated Arabic language proficiency. Degrees are recognized by the Moroccan state. The core curriculum remains Islamic religious and legal sciences, with Maliki jurisprudence as a particular specialty.
A modern organization called the Fihri Foundation, named after Fatima al-Fihri, operates separately from the university, focused on education and women's empowerment in the Muslim world. Awards bearing her name are granted in Morocco for educational achievement and contribution to women's advancement. Whether or not the historical Fatima al-Fihri was exactly who the chronicle described, she has become a lasting symbol of Muslim women's intellectual and institutional contribution.
Frequently Asked Questions
What is the world's oldest university?
The University of al-Qarawiyyin in Fez, Morocco, founded in 859 CE, is recognized by Guinness World Records as the "oldest existing, and continually operating educational institution in the world." UNESCO has also called it the oldest university in the world. The University of Bologna (1088 CE) is recognized as the oldest in the Western world, making al-Qarawiyyin 229 years older.
Who founded al-Qarawiyyin?
Al-Qarawiyyin is credited to Fatima al-Fihri, the daughter of a wealthy merchant who emigrated from Kairouan to Fez. The attribution comes from a 14th-century chronicle written roughly 450 years after the 859 CE founding. Some historians, including Jonathan Bloom and Chafik Benchekroun, have questioned whether the founding story reflects documented history or pious legend. The institution's 9th-century origins are not in doubt; the specific role of a woman named Fatima al-Fihri is what some scholars contest.
Was al-Qarawiyyin always a university?
No. It operated as a mosque and attached madrasa (Islamic school) for over 1,100 years, awarding individual ijazas rather than institutional degrees. In 1963, the Moroccan government reorganized it under the state university system, introducing faculties, a rector, and formal degree programs. The word "university" in the modern sense applies from 1963; the institution has operated as a center of advanced Islamic learning since 859 CE. Both facts are true simultaneously.
What is a waqf and why does it matter?
A waqf is an Islamic perpetual charitable endowment. Under Islamic law, once property is dedicated as waqf, it cannot be sold, inherited, or transferred. By founding al-Qarawiyyin as a waqf, Fatima al-Fihri gave the institution a legal permanence that no subsequent ruler could revoke. Scholars consider this structure one of the primary reasons al-Qarawiyyin survived 1,160+ years when comparable institutions from the same era did not.
Which famous scholars are genuinely connected to al-Qarawiyyin?
Two connections are well-documented. Ibn Khaldun (1332-1406), the father of sociology and historiography, is documented as having taught there. Leo Africanus (c. 1494-c. 1554), the geographer whose Description of Africa shaped European knowledge of the continent, attended al-Qarawiyyin according to his own writings. Claims that Averroes, Maimonides, or Pope Sylvester II studied there are not well-supported by primary scholarship on those figures.