
Mustansiriya Madrasa: Baghdad’s Four Sunni Law Schools
The Mustansiriya opened in 1234. See how a Baghdad endowment supported four Sunni law schools, a working library, student lodgings and medical teaching.
The Mustansiriya Madrasa opened in Baghdad in 1234 under the Abbasid caliph al-Mustansir. One endowment supported teaching for the Hanafi, Maliki, Shafi‘i and Hanbali traditions of Sunni law, along with lodging and provisions for students. On the east bank of the Tigris, the college housed a library and supported medical services nearby. The institution’s records show how the four schools were staffed. Its restored brick complex shows how a single site could accommodate teaching, residence and prayer.
The cover is an AI-assisted illustration of the Mustansiriya in use.
When the Mustansiriya was built and opened
Al-Mustansir commissioned the complex during his reign of 1226–1242, when the Abbasid caliphate still ruled Baghdad. The main entrance carries his foundation inscription. Archnet places the commission in 625 AH and renders that year as 1227. The Türkiye Diyanet Foundation’s encyclopedia entry by Sâmî es-Sakkâr and Nebi Bozkurt also gives 625 AH, rendering it as 1228. The lunar year overlaps both civil years, so the common date in the two accounts is 625 AH.
The same encyclopedia places completion of building work in 630 AH, given there as 1233, and records a public opening on 5 Rajab 631 AH, rendered as 6 April 1234. Al-Mustansir attended the ceremony. Poets recited verses, and robes of honor went to people involved in the foundation and to teachers. Archnet and Sebastian Günther’s survey of medieval education also associate the opening or completed institution with 631 AH/1234. The ceremony is the clearest date to give when readers ask when the school opened.
| Date | Event | Evidence |
|---|---|---|
| 625 AH / 1227–28 | Al-Mustansir commissions the madrasa. | Archnet and the TDV encyclopedia agree on the Hijri year. |
| 630 AH / 1233 | Building work is reported complete. | The TDV account distinguishes this from the ceremony. |
| 5 Rajab 631 AH / 6 April 1234 | The caliph attends the public opening. | The precise date follows the TDV account. |
| 633 AH / 1235–36 | A nearby hall associated with medical teaching is reported complete. | The TDV account cites the thirteenth-century chronicle al-Hawadith al-jami‘a. |
| After the conquest of 1258 | The college reopens after an interruption. | Michal Biran traces reopening and the library’s later staff. |
How four Sunni law schools shared one college
A madhhab is a tradition of legal interpretation, with its own authorities, methods and body of rulings. The four Sunni traditions represented at the Mustansiriya kept their separate teaching appointments. That arrangement made it possible to study under a Hanafi, Maliki, Shafi‘i or Hanbali jurist within one endowed institution. The foundation grouped several legal communities under a common patron and administration while giving each a formal place.
The TDV account reports one professor, four teaching assistants and 62 law students in each section, for a total of 248 places in law. It also describes substitutes who could take a professor’s class in his absence. The four assistants, or mu‘ids, had a distinct task. Ibn Battuta’s later account, as summarized by the TDV authors, describes them sitting beside the professor during a lesson and subsequently going over the material with students. That detail gives a sense of how a formal lecture could lead into smaller discussions. The allocation of 62 places per school describes the institution’s organization. Attendance and staffing on any particular day are harder to recover.
Günther uses the term universal madrasa for the inclusion of all four schools. Its meaning here is specific to the four Sunni legal traditions. An overview of how medieval madrasas combined teaching and residence helps explain why this arrangement stood out. Other institutions could endow a single legal chair, organize instruction around different subjects, or house students on a smaller scale. The Mustansiriya’s division into four sections was a decision about faculty positions and supported places as much as it was a decision about space.
What the endowment paid for
Housing, food and cash support made it possible for students to stay and study. The TDV entry describes regular board and lodging for the law students and a monthly payment. It also reports support for 30 orphans in Qur’an instruction and places for ten students of hadith. In the account of Ibn Wasil transmitted by al-Suyuti, the supplies include mats, oil, paper and ink, as well as a kitchen for the jurists and a bath. Those details show the range of the support. The accounts give different cash amounts, so a single stipend figure would conceal a difference in the evidence.
A waqf deed set terms for an endowment, including how income was to be used and who could receive it. At the Mustansiriya the TDV authors identify an overseer, a supervising official and a clerk. The administration had to support paid teachers and assistants while keeping cooks, attendants and library staff in work. A recurring allocation for paper mattered in a school where readers consulted and copied manuscripts. Food, beds and lighting depended just as much on regular administration as did a named teaching post.
The TDV entry also distinguishes an infirmary or medical teaching facility in an iwan near the madrasa. It describes a physician who treated patients while teaching students and identifies a provision for supplying medicine in the endowment record. The authors leave the precise positions of the pharmacy and bath uncertain. The dated report of medical instruction and patient care is stronger evidence than any assignment of those activities to a particular surviving room. In other cities, a bimaristan could combine treatment and medical teaching at a different scale and under its own endowment.
What survives on the Tigris riverfront
The brick complex stands on the Tigris’s east bank, downstream from today’s Shuhada Bridge. Its monumental entrance on the northeastern side has a recessed doorway, bands of patterned brickwork and a ten-line foundation inscription. An entrance iwan, a vaulted hall open on one side, gives onto a long rectangular courtyard. Across the courtyard is the prayer hall. Two stories of arcades and passages connect smaller rooms, including chambers interpreted as student lodgings. Archnet’s architectural description distinguishes the two prominent halls on the courtyard’s short sides from the entrance and prayer fronts on the long sides.
There are several reconstructions of how the teaching spaces worked. Günther describes four iwans associated with the four law schools. The TDV authors identify two large axial halls with the Hanafi and Shafi‘i sections and locate the Maliki and Hanbali sections in corners. After measuring the building in 1962 and 1963, Hans-Georg Schmid reinterpreted a southeastern group of six halls as teaching rooms. His findings differed from some earlier assignments. The records agree that the four legal traditions were represented. A floor plan therefore helps identify circulation and room sizes, while the assignment of individual rooms depends on which architectural study and period are in view.
Written records also preserve features that the visitor cannot infer from a portal alone. Alessia Zubani’s study compares al-Qazwini’s description of a clock with the anonymous al-Hawadith, once attributed to Ibn al-Fuwati. The sources describe a device that marked hours and prayer times through both visual and audible signals. The chronicle describes balls falling from the beaks of falcons and lights indicating time at night.
The library after Baghdad fell in 1258
Accounts of the opening give the transfer of books from the caliph’s collection a conspicuous place. The tradition assembled by al-Suyuti reports 160 loads of books, while the TDV entry repeats a reported total of 80,000 volumes. These figures convey how writers represented the scale of the gift. The later staff records give a different kind of evidence. They document people who managed, lent, retrieved and worked with books over several generations.
The siege of 1258 damaged the college and interrupted its work. Historian Michal Biran places its reopening about a year and a half after the conquest and identifies personnel who continued or took up posts afterward. The historian Ibn al-Sa‘i had served as a librarian under the Abbasids and remained in the post into the 1270s. Ibn al-Fuwati spent roughly 25 years associated with the institution, first as an assistant and then as chief librarian after the calligrapher Yaqut al-Musta‘simi in 1298–99. Biran also documents the Ilkhan Ghazan visiting the library in 1296. These dated records establish the survival of a working library after the siege. They leave the fate of many individual books unresolved.
Ibn Battuta’s fourteenth-century travel account names the Mustansiriya and the Nizamiyya as working colleges in Baghdad. Later uses altered the Mustansiriya’s fabric. Archnet records a conversion to customs use under the Ottomans in 1865 and identifies a restoration inscription on the river-facing wall from the same year. In the twentieth century, Iraq’s Directorate of Antiquities began a restoration campaign. The surviving structure consequently preserves several periods of work. Iraq includes the site in its Tigris riverfront entry on UNESCO’s World Heritage Tentative List.
How the Mustansiriya differed from the Nizamiyya
The Baghdad Nizamiyya opened in 1067 under the patronage of the Seljuk vizier Nizam al-Mulk. Its principal law teaching was Shafi‘i. Al-Mustansir, an Abbasid caliph, endowed the Mustansiriya more than a century and a half later with parallel chairs for four traditions. The two foundations show how the same city sustained different arrangements for legal teaching. In the Ilkhanid period, Biran identifies a librarian who served both institutions, a connection between their working libraries as well as a reminder of their separate foundations.
A reader comparing the two colleges can follow the evidence in different places. The Nizamiyya’s early appointments and the terms reported for its endowment tell us which jurists the patron intended to support. At the Mustansiriya, staff records, inscriptions and the surveys of the courtyard let us place institutional history alongside the architecture. The links between the colleges also become more concrete in the careers of the scholars who served them.
Sources
- Sâmî es-Sakkâr and Nebi Bozkurt, “Müstansıriyye Medresesi,” TDV İslâm Ansiklopedisi — opening date, allocation of teaching posts and student support, and evidence for the medical facility.
- Archnet, “Madrasa al-Mustansiriyya” — measured plan, entrance and riverfront inscriptions, later uses and conservation.
- Sebastian Günther, “Education, General (up to 1500),” Encyclopaedia of Islam THREE — the four legal traditions, the term universal madrasa and the comparison with the Nizamiyya.
- Islam Museum, “Building the Mustansiriyya madrasa in Baghdad” — a summary of Ibn Wasil and al-Dhahabi as quoted by al-Suyuti, including accounts of supplies and the transfer of books.
- German Archaeological Institute, “Die Madrasa al-Mustansiriyah in Baghdad” — the measured survey and Schmid’s revised interpretation of the southeastern rooms.
- Alessia Zubani, “Masters of Mechanics: Exploring the Science of Ingenious Devices in the Abbasid Empire,” Journal of Abbasid Studies — comparison of the two medieval descriptions of the Mustansiriya clock.
- Michal Biran, “Libraries, Books, and Transmission of Knowledge in Ilkhanid Baghdad” — reopening after the conquest, library posts and Ghazan’s visit.
- Isabel Toral, “Prose Writing in Baghdād: An Overview” — evidence from Ibn Battuta for both colleges operating in the fourteenth century.
- UNESCO World Heritage Centre, Iraq’s Tigris riverfront Tentative List entry — the surviving madrasa’s place in the Rusafa riverfront proposal.





