# Al-Qarawiyyin: a university operating since 859

> Al-Qarawiyyin in Fez, Morocco, was founded in 859 by Fatima al-Fihri, a woman from Kairouan, as a mosque funded from her inheritance. UNESCO and Guinness…

Source page: https://calankii.com/en/lessons/al-qarawiyyin/
Last checked: 2026-11-16
Publisher: Calankii (https://calankii.com)

## Founding

Fatima al-Fihri's family had moved from Kairouan, in today's Tunisia, to Fez. After her father's death she used her inheritance to found a mosque in 859 in the district of the Kairouan migrants. Teaching grew around it, and the mosque was expanded by later dynasties, notably the Almoravids in the 1100s ([University of al-Qarawiyyin](https://en.wikipedia.org/wiki/University_of_al-Qarawiyyin)).

## How it was funded

Like most institutions of learning in the Islamic world, al-Qarawiyyin was supported by endowments. Rulers and private donors gave shops, houses and land as waqf, whose income paid scholars, students and the library ([University of al-Qarawiyyin](https://en.wikipedia.org/wiki/University_of_al-Qarawiyyin) · [Waqf](/en/lessons/waqf-endowments/)).

## Scholars

Scholars across the Maghreb and al-Andalus studied and taught there over the centuries ([University of al-Qarawiyyin](https://en.wikipedia.org/wiki/University_of_al-Qarawiyyin)). The library, restored and reopened in 2016, holds manuscripts dating to the 9th century.

## Into the state system

In 1963 Morocco brought al-Qarawiyyin into the state university system; it now focuses on Islamic law and Arabic ([University of al-Qarawiyyin](https://en.wikipedia.org/wiki/University_of_al-Qarawiyyin)).

## What explains its length

The research on lasting institutions points to three features al-Qarawiyyin shares with al-Azhar: an endowment that belonged to the purpose rather than a person, teaching passed by licence from teacher to student, and protection by successive dynasties that each gained legitimacy from supporting it ([Madhhabs and the ijaza](/en/lessons/madhhabs-ijaza-and-qadi-courts/) · [Al-Azhar](/en/lessons/al-azhar/)).

## Key dates

- **859:** mosque founded by Fatima al-Fihri.
- **1135 to 1143:** expanded by the Almoravids to roughly its present size.
- **1349:** the Marinid sultan Abu Inan endows its library.
- **1963:** joined to the Moroccan state university system.
- **2016:** library reopens after restoration ([University of al-Qarawiyyin](https://en.wikipedia.org/wiki/University_of_al-Qarawiyyin)).

## Related pages

- [The diwan and the hisba: early Islamic state offices](/en/lessons/diwan-and-hisba/)
- [The Mamluk Sultanate, 1250 to 1517](/en/lessons/mamluk-sultanate-1250-1517/)
- [The Ottoman state: devshirme, timar, millet and succession](/en/lessons/ottoman-devshirme-and-succession/)
- [Ottoman reform and the end of the caliphate, 1826 to 1924](/en/lessons/ottoman-reform-and-end-of-the-caliphate/)
- [Maghribi traders and the Cairo Geniza](/en/lessons/maghribi-traders-and-the-cairo-geniza/)
- [Seven features of lasting institutions](/en/lessons/seven-features-of-lasting-institutions/)

---
I want to help with this: email hello@calankii.com. Fix this page: email hello@calankii.com with the page link and your source.
