West Asia & N. Africa 859–1200 CE

Fez & KairouanAl-Qarawiyyin, Medicine & Women Patrons

How refugees from Kairouan founded Africa's oldest continuous degree-granting college and paper manuscript hospitals

Built from 13 cited sources, 1 primary voice and 2 connections.

Al-Qarawiyyin Library, FezSalerno & Cairo Bimaristans
2 connections, 859–1200 CE

IHistorian's briefing

Drafted by Claude Haiku 5.5 (v7.0) from 13 cited sources, and checked that every citation points to one of them. See the evidence How AI is used

Every section marked was drafted the same way.

How a Kairouan merchant's daughter may have founded the mosque that became a university in Fez

In the early ninth century, a family of merchants left Kairouan, the Tunisian city founded around 670, and settled in Fez, where the Idrisid dynasty had ruled since 788. They were far from alone. A community of migrants from Kairouan had taken root in a western district of the city, bringing with them habits shaped by a place that had long been a center of Sunni legal learning and Quranic study. Among the newcomers was Muhammad al-Fihri, a wealthy merchant, with two daughters, Fatima and Mariam. When he died, Fatima inherited his fortune, and according to the chronicle of Ibn Abi Zar, she resolved to spend it on a mosque for her community.

That mosque, al-Qarawiyyin, began as a prayer hall of roughly 36 by 32 metres with four aisles and a small courtyard. Its builders followed the pattern of early congregational mosques, which served as places of prayer but also as places where people heard sermons, studied texts, and settled disputes. Over the following centuries the building grew well beyond that first plan. In the tenth century the Umayyads of Cordoba and the Fatimids of Ifriqiya competed for influence over Fez, which lay between their territories, and the mosque received substantial patronage. The Umayyad caliph Abd al-Rahman III paid for an expansion completed in 955 and 956, widening the building on three sides and replacing the minaret with a larger square one that still stands. A later ruler added decoration in 998. Each phase left its marks on the walls, the minaret, and the courtyard.

The mosque became a place of teaching only gradually, and the sources do not agree on when. Ibn Abi Zar wrote in the early fourteenth century, and al-Yazna'i, also writing in that century, says teaching had already taken place before his own time, but neither gives a clear start date. Modern historians offer different answers: Abdelhadi Tazi points to 1121 as the earliest clear evidence of teaching, Mohammed al-Manouni links the change to the Almoravid period (1040–1147), and Évariste Lévi-Provençal places it in the Marinid period (1244–1465). Fatima herself is also uncertain. The sources that describe her were written centuries after her death around 880, and Roger Le Tourneau and Jonathan Bloom both suspect that the neat pairing of two sisters founding two famous Fez mosques owes more to legend than to documented fact.

What survives is a building reshaped over more than a thousand years, and a teaching tradition that gave the city its lasting reputation. The mosque's library was founded in 1349, and its holdings include a parchment medical diploma dated 1207. Students sat in semicircles around a sheikh, read a passage aloud, and answered questions on grammar, law, and interpretation. Behind that routine sits a question worth keeping in view: how much of the founding story was known to the people who used the building, and how much was added later to give it an older and grander origin? 1,2,3

What to watch for

  1. 1Notice how the migration from Kairouan ties Fez's learning culture to a Tunisian city with its own long scholarly tradition.
  2. 2Compare what the late chronicles say about Fatima al-Fihri with the foundation inscription found under plaster in the twentieth century.
  3. 3Watch how the same mosque is called a prayer hall, a madrasa, and a university, and ask what each label meant at the time.

IIHow it unfoldedDrafted by a language model from the cited sources

Five steps, each read through a discipline.

  1. 1
    Economy & law

    Migration from Kairouan brings a merchant family to Fez

    Muhammad al-Fihri and his household were part of a wider movement of families from Kairouan into Fez in the early ninth century. They settled in a district where other migrants already lived, so they arrived with a ready community. Their wealth and shared origin gave that community a reason to want a mosque of its own.1,2

  2. 2
    Economy & law

    Inheritance becomes a mosque endowment

    When Muhammad died, Fatima inherited his fortune and, according to Ibn Abi Zar, spent it on a mosque for her community. Endowing a religious building was a common way to turn private wealth into public benefit, and it tied the family's name to the place. The sources differ on how much of this account is accurate.1,2

  3. 3
    Archaeology

    The building grows through rival patronage

    The first prayer hall was modest, about 36 by 32 metres. In the tenth century the Umayyads of Cordoba sponsored a large expansion that widened the building and replaced the minaret. Later rulers added decoration, and each stage built new walls and features on top of older ones.1,2,3

  4. 4
    Mind & cognition

    Gatherings slowly become schools

    Early Islamic mosques hosted sermons, legal debate, and study circles, so teaching grew out of ordinary use rather than a single decision. Historians disagree on the date, proposing 1121, the Almoravid period, and the Marinid period. By the fourteenth century the mosque's teaching reputation was well established.1,2

  5. 5
    Voices from below

    Later writers shape the founding story

    Ibn Abi Zar wrote centuries after Fatima's death, and the neat parallel of two sisters founding two famous mosques raised doubts for modern scholars. The foundation inscription found beneath plaster in the twentieth century added new evidence, and the story that remains is partly memory and partly later construction.1,2

IIIThrough five lensesDrafted by a language model from the cited sources

Crowns & dynasties

Caliphs and rival dynasties shaped the mosque

Fez sat between the Umayyad caliphate in Cordoba and the Fatimids in Ifriqiya, and both sought influence there. Abd al-Rahman III funded the expansion of 955 and 956, which widened the building on three sides and replaced the original minaret with a larger square one that still stands. The mosque's growth followed political competition as much as religious devotion.1,2

Primary voices

The founding story comes from a late chronicle

Nearly everything about Fatima al-Fihri comes from Ibn Abi Zar, who wrote The Garden of Pages in the early fourteenth century, centuries after her death. Historians regard him as a relatively unreliable source, and the foundation inscription found under plaster in the twentieth century complicates his account. Earlier voices are largely silent.1,2

Faiths & scripts

Teaching was built around the sheikh and the text

Students sat in semicircles around a sheikh and read passages aloud, answering questions on grammar, law, and interpretation. The Maliki school and classical Arabic formed the core of the curriculum, and logic, astronomy, and medicine were taught for centuries before later reforms narrowed the range.1,2

Craft, science & art

Manuscripts and the hospital model

The mosque library gathered a large body of manuscripts. The Cleveland Museum of Art holds a ninth-century North African Quran leaf in gold, ink, and colors on parchment, an example of the scholarly book craft of the region. Bimaristans, Islamic public hospitals, combined wards, teaching, and pharmacies, and Kairouan's Dimnah hospital is recorded as an early institution of this kind.1,5

Food & daily life

Merchant families and the Fustat papers

The Fihri family were merchants who moved with their household, including a sister and a daughter, into a migrant district of Fez. Fustat in Egypt, a port city linking Mediterranean and Indian Ocean trade, preserved everyday letters and marriage deeds in its Geniza, showing how such families stayed connected across long distances.1,2

IVDeeper currentsDrafted by a language model from the cited sources

What a specialist in each field would point to.

Ecology & body

Kairouan's hospitals and the care of the sick

Mobile and permanent care centers carried medicine from the frontier into the city.

The Islamic hospital, the bimaristan, grew out of mobile care units that carried medicines, food, and water alongside physicians and pharmacists. Tradition credits Rufaidah al-Aslamia with setting up a tent clinic at the Battle of the Trench in 627. Kairouan is recorded among the centers that developed permanent hospitals, and its Dimnah hospital, dated around 830 in the Kairouan entry, offered trained nursing regardless of background. Hospitals like these gave physicians a place to teach at the bedside, and their practices reached Europe through translation and trade. Fez's scholars worked in the same wider medical world, so the teaching of pharmacy and medicine at the mosque was not an isolated experiment.1,2

Voices from below

Women's endowments and the parallel sister story

Property given for religious purposes sustained the building for centuries.

Fatima's story is one of the few places in the early record where a woman is credited with founding a major religious institution. The sources give her the family fortune, the decision to spend it on a mosque, and a sister, Mariam, said to have founded the al-Andalusiyyin mosque across the river around the same time. Le Tourneau and Bloom doubt that symmetry, and some readers see the pairing as a convenient legend. Even so, the endowment model the story reflects was real, and later income from property bought with the founder's money supported teaching and students. The reliability of the sources is the real question, and the sisters' names survive mainly because later chroniclers chose to record them.1,2

Mind & cognition

Teaching by reading and questioning, not lecturing

The halqa circle made sheikh and students work through the same text together.

The halqa, a semicircle of students around a master, was the basic unit of higher learning in the mosque. A student read a section of a text, and the sheikh questioned him on its grammar, legal rulings, or interpretation before explaining the hard points. This method treated knowledge as something checked aloud and fixed through repetition, and it helps explain why the curriculum leaned so heavily on Arabic grammar and Maliki law. The same format carried logic, astronomy, and medicine until reforms in the late eighteenth century restricted them. It lasted because memorizing the Quran and understanding legal texts were prerequisites for every other subject.1,2

VWhat is often said, and what the record showsDrafted by a language model from the cited sources

Often said

Fatima al-Fihri founded a university in Fez in 859, and her sister built the other great mosque.

The sources show

The founding account comes from Ibn Abi Zar, writing in the early fourteenth century, and modern historians including Roger Le Tourneau and Jonathan Bloom doubt the parallel between two sisters and two mosques. The building as it stands contains no part older than the tenth century, and the first clear evidence of teaching is dated to 1121, long after the founding. The foundation inscription found under plaster complicates the traditional story.1,2

VIConnected geographiesDrafted by a language model from the cited sources

No pure people. Two threads tie this place to the rest of the world.

  • 859–1200 CE Script & text
    Ifriqiyan Scholar Migration to Fez Kairouan Great Mosque (Tunisia) Al-Qarawiyyin Library, Fez Migrant families from Kairouan carried their learning and religious institutions into Fez, and the Fihri household is the best-known example. The mosque grew into a center for Maliki law and Arabic grammar that drew students from across Morocco and West Africa.1,2
  • 859–1200 CE Craft & science
    Arabic-to-Latin Clinical Manuals Kairouan Medical Schools Salerno & Cairo Bimaristans Kairouan's hospitals and medical teaching were part of the wider Islamic hospital tradition that later reached Europe through translation. The link between Kairouan's clinics and Salerno's medical texts rests on the sources in the evidence pack, which record the Kairouan hospital as an early public institution.1,2
Al-Qarawiyyin Library, FezSalerno & Cairo Bimaristans
859–1200 CE
See them on the globe →

VIIThe line of office, 825–1204 CE

Reigns drawn to scale.

VIIIFrom the archive

Wikisource · The Alchemy of Happiness (Field)/Chapter I (rev 4551172)
“Knowledge of self is the key to the knowledge of God, according to the saying: "He who knows himself knows God," and, as it is written in the Koran, "We will show them Our signs in the world and in themselves, that the truth may be manifest to them." Now nothing is nearer to thee than thyself, and if thou knowest not thyself how canst thou know anything else? If thou sayest "I know myself," meaning thy outward shape, body, face, limbs, and so forth, such knowledge can never be a key to the knowledge of God.”

Classical Islamic philosophical synthesis studied across madrasa libraries from Fez and Kairouan to Baghdad and Khorasan.

Abu Hamid al-Ghazali (tr. Claud Field, 1910) · Fez / Kairouan Read the source

IXWho the record leaves outDrafted by a language model from the cited sources

The surviving sources come mostly from later chroniclers such as Ibn Abi Zar and al-Yazna'i, who wrote centuries after the mosque's founding and filled gaps with legend. The library's manuscripts and the foundation inscription are physical survivals, but the everyday voices of students, copyists, women worshippers, and the families who kept the building running are largely missing. Beyond the Fihri family, the lives of the Kairouan migrant community are almost unrecorded.

XSame sky, 980 CE

Who else was alive that year, and how old they were.

34Gerbert of Aurillac (Sylvester II) Scholar Pope · Catalonia & Rome
946–1003 CE
–Sankore Mali Scholars Western Saharan Jurists · Timbuktu, Mali
1100–1350 CE

XIPeople, events, objects

North African Qur'an Parchment Folio

XIIIn other languagesDrafted by a language model from the cited sources

How this moment is named and remembered across languages.

卡魯因大學

The Chinese article traces the long curriculum, from Quran and law to grammar, logic, pharmacy, and astronomy, and the decline after the fourteenth century. The English dossier concentrates more on when teaching began.

卡魯因大學(阿拉伯語:جامعة القرويين)是世界上最古老的大學之一,位於 摩洛哥 非斯城 。由法蒂瑪菲赫利(Fatima al-Fihri)成立,她是商人穆罕默德菲赫利(Muḥammad-Fihri)的女兒。7

العربية (Arabic) العربية (Arabic) Wikipedia

جامعة القرويين

The Arabic article treats the mosque's physical growth, including the Umayyad expansion and the minaret, as the central story of the building. English accounts give more weight to the disputed founding legend and the teaching tradition.

جامعة القرويين هي جامعة تقع في مدينة فاس ، بالمغرب ، وتعتبر وفقًا لليونسكو وبناءً على تصنيفات كتاب غينيس للأرقام القياسية أقدم مؤسسة تعليم عالٍ وأول جامعة تمنح إجازة في الطب في العالم وهي ما زالت تُدرَّس حتى الآن دون انقطاعٍ. ويُشِير إليها المؤرخون بأنها أقدم جامعة في العالم.8

Español (Spanish) Español (Spanish) Wikipedia

Universidad de Qarawiyyin

The Spanish article spends much of its space on the debate over when teaching began, citing Tazi, al-Manouni, and Lévi-Provençal. The English dossier mentions those dates but centers on the Kairouan migration and the Umayyad rivalry.

La Universidad de Qarawiyyin o Al-Karaouine (en árabe جامعة القرويين) es una universidad islámica y mezquita ubicada en la ciudad de Fez, Marruecos.9

فارسی (Persian) فارسی (Persian) Wikipedia

دانشگاه قرویین

The Persian article presents the Kairouan family background and the sisters' inheritance as an act of piety. The English dossier asks how much of that account can be verified.

دانشگاه قرویین (به عربی: جامعة القرويين) دانشگاهی در فاس ، مراکش است.10

日本語 (Japanese) 日本語 (Japanese) Wikipedia

カラウィーイーン大学

The Japanese article describes the teaching method in detail and highlights the Andalusian heritage of the sheikhs. The English dossier gives more attention to architectural history and scholarly disputes.

アル=カラウィーイーン大学(アラビア語: جامعة القرويين; ベルベル語 :ⵜⵉⵎⵣⴳⵉⴷⴰ ⵏ ⵍⵇⴰⵕⴰⵡⵉⵢⵢⵉⵏ、 フランス語: Université Al Quaraouiyine、英語:University of al-Qarawiyyin、Qarawiyin Mosque、Quaraouiyine、アル=カラウィーイーン大学もしくはアル=カラウィーイーン・モスクとも呼ばれる)は、 モロッコ の フェズ (アル=ファース)にある大学である。11

Türkçe (Turkish) Türkçe (Turkish) Wikipedia

Karaviyyîn Üniversitesi

The Turkish article presents the university mainly as a home to major scholars such as Ibn Khaldun and Ibn Rushd. The English sources focus on institutional history and the debate over whether it counts as a university.

Karaviyyin Üniversitesi (Arapça: جامعة القرويين), günümüzde Fas sınırlarındaki Fes şehrinde bulunan üniversitedir.12

A note on the sourcesDrafted by a language model from the cited sources

Moroccan and Arabic-language traditions usually treat Fatima al-Fihri as a historical founder and stress continuous teaching from the mosque's early years. Many Western historians, following Le Tourneau and Bloom, treat the founding account as a pious legend shaped by the symmetry of two sisters and two mosques. The start of teaching is equally contested, with Tazi, al-Manouni, and Lévi-Provençal each choosing a different century.

XIIIPrimary works & reading

From the source

  1. The Confessions of Al Ghazzali (Al-Munqidh min al-Dalal) Abu Hamid al-Ghazali · 1108 CE

    “Mathematics comprises the knowledge of calculation, geometry, and cosmography : it has no connection with the religious sciences, and proves nothing for or against religion ; it rests on a foundation of proofs which, once known and understood, cannot be refuted. Mathematics tend, however, to produce two bad results. The first is this : Whoever studies this science admires the subtlety and clearness of its proofs. His confidence in philosophy increases, and he thinks that all its departments are capable of the same clearness and solidity of proof as mathematics.”

    Ghazali separates demonstrative learning from religious knowledge and warns that expertise in one discipline does not confer authority in jurisprudence, theology, or medicine. His account reveals both the range of recognized scholarly specialisms and the conflict their competing claims to certainty could provoke.

    Model-drafted synthesis · Kimi K3.1 Pro

Primary works, letters & books

No matching primary books indexed for this span yet.

XIVSources

  1. Wikipedia — University of al-Qarawiyyin. CC-BY-SA-4.0.
  2. Wikidata Historical Entities & Lineage Spine. CC0-1.0.
  3. Cliopatria Historical Polity Borders v0.2.0 (Seshat Databank). CC-BY-4.0.
  4. Modelski & Archaeological Ancient Urban Population Estimates. CC0-1.0.
  5. Cleveland Museum of Art — Open Access CC0 Collection. CC0-1.0.
  6. Wikisource — The Alchemy of Happiness (Field)/Chapter I (rev 4551172). CC-BY-SA-4.0.
  7. Wikipedia (zh) — 卡魯因大學 (rev 93391256). CC-BY-SA-4.0.
  8. Wikipedia (ar) — جامعة القرويين (rev 77784475). CC-BY-SA-4.0.
  9. Wikipedia (es) — Universidad de Qarawiyyin (rev 175975856). CC-BY-SA-4.0.
  10. Wikipedia (fa) — دانشگاه قرویین (rev 44281631). CC-BY-SA-4.0.
  11. Wikipedia (ja) — カラウィーイーン大学 (rev 105495391). CC-BY-SA-4.0.
  12. Wikipedia (tr) — Karaviyyîn Üniversitesi (rev 37382480). CC-BY-SA-4.0.
  13. Internet Archive — The Confessions of Al Ghazzali (Al-Munqidh min al-Dalal) (Abu Hamid al-Ghazali (tr. Claud Field), 1909). Public Domain (Internet Archive).