F

Fatima al-Fihri

Fatima bint Muhammad al-Fihriyya al-Qurayshiyya

SpiritualityLiteratureMiddle AgesEarly Islamic Middle Ages, 9th century, during the rise of Arab-Muslim civilization under the Idrisid dynasty in the Maghreb

A Muslim scholar and patron from Kairouan (present-day Tunisia), Fatima al-Fihri founded the al-Qarawiyyin mosque-university in Fez in 859, considered the oldest continuously operating university in the world. Born into a Berber-Arab family that emigrated to Morocco, she devoted her entire fortune to this institution of learning.

Key Facts

  • Born around 800 in Kairouan (present-day Tunisia), into a family of scholars of Qurayshi origin
  • Emigrated to Fez with her family during the reign of the Idrisids, the first Islamic dynasty of the Maghreb
  • Founded the al-Qarawiyyin mosque in 859, funded entirely from her personal inheritance
  • The University of al-Qarawiyyin is recognized by UNESCO and the Guinness World Records as the oldest continuously operating university in the world
  • Her story has come down to us primarily through written Arabic chronicles, notably the Rawḍ al-Qirṭās by Ibn Abi Zar (14th century) — a written source, not oral tradition

Works & Achievements

Foundation of the al-Qarawiyyin Mosque (859)

A religious and intellectual institution founded in Fez, it became the oldest continuously operating university in the world. It welcomed generations of scholars, theologians, jurists, mathematicians, and philosophers over more than eleven centuries.

Endowment of the al-Fihri Waqf (Pious Foundation) (859)

Fatima established a waqf, a perpetual Islamic endowment, to ensure the long-term financing of the mosque-university. This legal mechanism guaranteed the upkeep of the buildings and the payment of teachers from generation to generation.

Library of al-Qarawiyyin (9th century (gradual formation))

A library founded as an extension of the mosque, which still houses manuscripts from the 9th century, including a Quran written on gazelle parchment and unique scientific texts. It was restored and reopened in 2016.

Anecdotes

Fatima al-Fihri and her sister Mariam inherited a vast fortune upon the death of their father, the wealthy merchant Muhammad al-Fihri. Rather than keeping this inheritance for herself, Fatima vowed to dedicate every dirham to building a mosque-university worthy of her community. She is said to have fasted throughout the entire construction period, breaking her fast only when the last wall was completed.

Construction of the al-Qarawiyyin mosque began in 859 and lasted several years. According to tradition, Fatima personally supervised the work, ensuring that the materials were of the highest quality and that the craftsmen adhered to the standards of Andalusian and Idrisid artistry. Her devotion was such that she prayed each day on the construction site itself.

Her sister Mariam, driven by the same spirit, used her own share of the inheritance to simultaneously found the Mosque of the Andalusians, also in Fez. The two sisters competed in generosity, endowing their adopted city with two major religious and intellectual monuments that still stand today.

Al-Qarawiyyin counted among its students and scholars figures who would shape the history of knowledge: the future Pope Sylvester II (Gerbert of Aurillac) is said to have studied Arabic mathematics there in the 10th century, helping to introduce Arabic numerals to Europe. Ibn Khaldun, the great historian, taught his theories on universal history there in the 14th century.

Contrary to a common misconception, the title of 'university' granted to al-Qarawiyyin reflects its uninterrupted institutional continuity since 859, recognized by the Guinness World Records. In 2016, King Mohammed VI inaugurated the restored library, which houses manuscripts over a thousand years old — including Quranic and scientific texts of incalculable value.

Primary Sources

Rawḍ al-Qirṭās (The Garden of Pages) — Ibn Abī Zarʿ (c. 1326)
Ibn Abī Zarʿ records the founding of the al-Qarawiyyin mosque by Fatima bint Muhammad al-Fihri, noting that she dedicated her entire paternal inheritance to the project for the benefit of the Muslim community of Fez.
Al-Anīs al-Muṭrib (The Joyful Companion) — Ibn Abī Zarʿ (14th century)
The chronicle describes how Fatima al-Fihri, a pious and learned woman originally from Kairouan, had the Qarawiyyīn mosque built in Fez in the year 245 of the Hijra, establishing a center for prayer and scholarship.
Kitāb al-Istibṣār — anonymous author (12th century)
Description of the al-Qarawiyyin mosque in Fez as one of the greatest centers of assembly and learning in the Maghreb, founded by a noble woman of the Quraysh tribe who had settled in Morocco.
Oral tradition preserved in the Qarawiyyine community of Fez (9th–10th century, oral transmission)
Oral traditions kept by families descended from the earliest students recount that Fatima fasted throughout the entire period of construction and was the first to pray in the completed mosque, giving thanks to God for the fulfillment of her vow.

Key Places

Al-Qarawiyyin Mosque-University, Fez (Morocco)

Founded by Fatima al-Fihri in 859, it is the oldest continuously operating university in the world, according to the Guinness Book of Records. It remains active today, at the heart of the medina of Fez.

Kairouan (Tunisia)

Birthplace of the al-Fihri family, and a major intellectual and religious center of the medieval Maghreb. It was from here that the family emigrated to Fez in the early 9th century, bringing their culture and wealth with them.

Medina of Fes el-Bali (Morocco)

Historic quarter founded by the Idrisids where the Kairouan community to which Fatima belonged settled. The medina, a UNESCO World Heritage Site, still preserves the urban fabric of the 9th century.

Mosque of the Andalusians, Fez (Morocco)

Founded in 859 by Mariam, Fatima's sister, with the same piety and generosity. The two sister mosques symbolize the blending of Kairouan and Andalusian cultures in Fez.

See also