
What a Madrasa Was: Teaching, Lodging and Endowment
Compare historical madrasas in Cairo, Konya, Fez and Istanbul to see how teaching, student housing and endowments worked, and why their layouts differed.
A madrasa is a school. In the historical settings discussed here, a madrasa could be an endowed institution for advanced Islamic learning, with teaching posts and places for students to live. The name could also refer to the building that housed those activities. In Cairo, a single foundation grouped four colleges around a mosque; in Fez, a college housed students near a major center of teaching. What people studied, where they met and who could live there depended on the institution.
The distinction matters when reading a plan or an endowment deed. A room count tells us something about the building. A charter can specify how many residents the founder intended to support. A manuscript can name a teacher and the text a student studied. These records answer different questions, even when they concern the same practice of learning.
In Cairo, the shared court led to four separate colleges
At the mid-fourteenth-century Mosque and Madrasa of Sultan Hasan, the Egyptian Ministry of Tourism and Antiquities describes an open court with four large iwans. An iwan is a hall open on one side; its relationship to the court is easier to see in the ministry's numbered plan. The guide to iwans and four-iwan courts explains how the term applies to a space and how it differs from the name of an institution.
Look at the corners of the main court. Each has a doorway leading into one of the four madrasas associated with the Sunni schools of jurisprudence. Each college had its own court, iwan, student rooms and service spaces. A plan that labels the four main iwans therefore still needs another layer of detail: there were smaller places for teaching and residence beyond the main court. The foundation supported both the shared spaces of a mosque complex and the more restricted spaces of individual colleges.
The deed counted people; the survey counted living units
Howyda Al-Harithy compared the building with the 1359 endowment deed in her 2007 survey. The Cairo archive holds a damaged original on parchment (40/6) and a more complete contemporary bound copy (365/85). Her account gives each college one professor, three assistants and a supervisor, with 100 students of whom 50 were to be residents. The field survey counted unequal numbers of living units.
| College in the complex | Students specified in deed (residents included) | Living units counted in survey |
|---|---|---|
| Hanafi | 100 (50 residents) | 56 |
| Shafi‘i | 100 (50 residents) | 52 |
| Maliki | 100 (50 residents) | 44 |
| Hanbali | 100 (50 residents) | 22 |
The columns have different units and describe different moments. The deed defines an intended arrangement; the survey records spaces identifiable in the building. The table cannot tell us how many people occupied a room, whether all places were filled, or whether stipends were always paid. A dated list of residents or payments would answer a question the architecture cannot. The guide to reading a waqfiyya shows how to keep provisions, later records and surviving copies separate.
Karatay in Konya brings classrooms under and around a dome
At the Karatay Madrasa, the central space was covered. Yekta Demiralp's monument record describes a dome with an opening for light and air above a square pool. The main teaching iwan stands on the west side; smaller winter classrooms flank it. The record dates the building to 1251–52 on the basis of an endowment charter dated 1253. Those dates refer to the building and the evidence used to date it, respectively.
The Turkish museum record identifies hadith and Qur’anic exegesis as subjects taught there in the Seljuk period. It also dates the building's opening as a tile museum to 1955. Demiralp notes that ruined student cells on the north and south were rebuilt in the 1970s. The central dome still makes the spatial arrangement legible; the reconstructed cells and museum displays belong to different episodes of the building's history. Neither should be read as a direct record of how a student occupied a room in the thirteenth century.
In Fez, the school and its neighborhood worked together
At the fourteenth-century ‘Attarin Madrasa, Mohamed Mezzine's catalogue follows a bent passage from the entrance. Doors lead to latrines and stairs; farther in, the route opens into a court with a fountain and a prayer room at its southern side. The stairs and student rooms matter to the plan as much as the decorated court: the visitor's route gives only one view of how the residents would have used the building.
Mezzine describes much of the city's teaching as taking place at the nearby Qarawiyyin and also describes lessons in the ‘Attarin's prayer room. The same student could have used an endowed residence and studied in more than one place. Housing is therefore a clue to a school's place in a neighborhood, not a boundary for the learning it supported. The example also shows why a prayer room cannot be excluded from an account of teaching spaces simply because its fittings indicate worship.
On an Istanbul hillside, similar colleges needed different entrances
Archnet's record of the Süleymaniye complex describes colleges with small domed cells around arcaded courtyards and a larger domed study hall called a dershane. Two colleges on the northeastern slope depart from the arrangement on one side: stairs rise to side entrances at the study halls. The position of the doorway here tells us about the terrain and access, even where the wider organization of court, cells and hall remains recognizable.
The complex also included separate provision for hadith and medical study, a hospital and a kitchen. Those components should be read at the scale of the whole foundation. A kitchen in the complex does not put a kitchen inside every college, just as a medical school does not establish that medicine was taught in every study hall. The history of Ottoman imarets explains what provisions, staff and records can reveal about food service. A person studying the colleges can compare that service with the schools' needs without assuming a shared daily routine for everyone on the site.
At Sher Dor, upper rooms are also evidence of restoration
The seventeenth-century Sher Dor Madrasa at Samarkand provides a different comparison. In Archnet's description, student cells and their vestibules line two levels around the central court. The north, east and south iwans served as open teaching spaces. When reading the building, follow the transition from those halls to the smaller doorways: an iwan could serve a group, while a vestibule led to a living unit.
Archnet also records rebuilding of parts of the court's upper level in 1962. A photograph of an upper opening and a description of the original residential scheme are thus different forms of evidence. The overall two-level arrangement remains useful for comparing the school with a covered court like Karatay's, but a surviving or rebuilt alcove should be dated before its details are used to reconstruct an earlier student's room.
Some teaching left its record in books instead of buildings
In her manuscript study of Bahāʾ al-Dīn al-ʿĀmilī's circle, Mahdieh Tavakol follows a Safavid scholar whose movements brought students and texts together in different places. In Tabriz in 1585, one student read and collated a manuscript containing two works in the Forty Hadith genre. Other students received authorizations connected with individual works. The evidence ties identifiable reading and copying activity to the scholar's presence in the city.
An institution might offer a paid post and rooms for study; the records of the circle describe contact between particular people and texts. An ijaza, or permission to transmit, can identify who authorized whom and for what work. It does not have to record a standard course of study or certify graduation from a particular building. Reading both kinds of evidence explains why a madrasa mattered without making it the only setting for advanced learning.
Use each kind of evidence for the question it can answer
Begin with the route a person could take: from the street to a shared court, up a stair, or through a corner door into a separate college. Match that route to evidence for who used the spaces. A labeled plan may give the shape of the site and the location of a room; an endowment text can name a teaching post, a designated activity or an intended recipient. A plan drawn after restorations needs to be read with the dates of those works in mind.
A surviving object may offer a narrower piece of evidence. The Metropolitan Museum's prayer niche from the Madrasa Imami in Isfahan, object 39.20, dates to 1354–55. Its form marks the direction of prayer and its inscriptions belong to a particular architectural feature. The object date should stay attached to the niche: it cannot by itself date every part of the school or tell us where students slept.
One useful way to record a comparison is to label each observation as a documented provision, an observed feature, or an account of use. For Sultan Hasan, the 50 residents per college belong under provisions and the four unequal room counts under observed features. For the Tabriz circle, manuscripts attest to particular acts of reading and authorization. Keeping these categories separate gives a clearer answer to how a madrasa worked than trying to identify every school from one familiar courtyard shape.
Sources and editorial responsibility
Prepared by the Muslim Post Editorial Desk; sources checked on 11 November 2026. The cover is an illustrative historical reconstruction. It does not depict any of the named buildings as a documentary photograph.
- Egyptian Ministry of Tourism and Antiquities, Mosque and Madrasa of Sultan Hasan and its numbered plan — the shared court, iwans and separate entrances.
- Howyda Al-Harithy, “The Four Madrasahs in the Complex of Sultan Ḥasan (1356–61): The Complete Survey,” 2007, pp. 49–52 — archival copies, intended staffing and student places, and surveyed living units.
- Yekta Demiralp, Museum With No Frontiers, Karatay Madrasa — the covered central space, classroom layout, charter dating and reconstructed cells.
- Türkiye Ministry of Culture and Tourism, Karatay Tile Works Museum — the subjects identified by the museum and the date it opened.
- Mohamed Mezzine, Museum With No Frontiers, ‘Attarin Madrasa — access, student accommodation, the prayer room and nearby teaching at Qarawiyyin.
- Archnet, Süleymaniye Külliyesi — separate institutions in the complex, college layouts and changes in access on the slope.
- Archnet, Shir Dar Madrasa — two levels of student rooms, teaching iwans and later rebuilding of the upper court.
- Mahdieh Tavakol, “Scholarly Circles and the Transmission of Knowledge,” Iranian Studies 57(3), 2024 — manuscript evidence for the 1585 Tabriz circle.
- Metropolitan Museum of Art, Mihrab, 39.20 — object date, Isfahan provenance and the niche's role in prayer.





