Founding of the Nizamiyyah Madrasa
تأسيس المدرسة النظامية
# The Nizamiyyah Madrasa: The First University Network in Islamic History
Nizam al-Mulk: The Great Vizier
To understand the Nizamiyyah madrasa system, one must first understand the man who created it. Abu Ali al-Hasan ibn Ali al-Tusi, known as Nizam al-Mulk (408-485 AH / 1018-1092 CE), served as the chief minister (vizier) of the Seljuk sultans Alp Arslan and Malik Shah for approximately thirty years. In that capacity he effectively governed one of the largest and most powerful states in the medieval Islamic world, managing the complex administration of a vast empire from the Mediterranean to Central Asia.
Nizam al-Mulk was more than a competent administrator. He was a man of deep religious conviction and genuine intellectual culture, committed to Sunni Islam in both its theoretical and practical dimensions. His "Siyasatnama" (Book of Government) — a treatise on statecraft written for Malik Shah — is one of the great works of medieval Islamic political theory, combining practical administrative wisdom with insistence on the ruler's religious obligations. He was a Shafi'i in fiqh and an Ash'ari in theology, and he used his enormous power to promote these positions throughout the Seljuk domains.
His decision to build a network of madrasas — educational institutions supporting Sunni scholarship — was the most consequential single act of educational patronage in Islamic history. It transformed how Islamic higher education was organized and financed, and established institutional patterns that persist to this day.
The Founding of the Baghdad Nizamiyyah (459 AH / 1067 CE)
The flagship of Nizam al-Mulk's educational network was the Nizamiyyah Madrasa in Baghdad, founded in 459 AH / 1067 CE. It was not the first madrasa — smaller, locally funded madrasas had existed in Khorasan and elsewhere for at least a century — but it was the first madrasa of its scale: generously endowed by the state, designed to attract the finest scholars in the Islamic world, and intended to set a standard that others would emulate.
The building itself was located on the eastern bank of the Tigris, in a prime location in the Abbasid capital. Its physical grandeur was matched by its endowment: Nizam al-Mulk provided extensive waqf (religious endowment) properties whose revenues were dedicated in perpetuity to funding the madrasa's operations — paying scholars' salaries, funding students' stipends and accommodation, and maintaining the building and its library.
The scale of this endowment was unprecedented. Previous patronage of scholarship had typically been personal — a caliph or amir might support individual scholars with gifts or salaries — but it was not institutionalized in a way that would survive the patron's death or fall from power. The waqf system permanently separated the madrasa's funding from the political fortunes of its founder: the endowed properties would continue generating revenue regardless of who ruled, as long as the institution existed.
This innovation was crucial. Institutions that depend on the continuing favor of individual patrons are fragile. Institutions with permanent endowments are durable. The Nizamiyyah model of waqf-funded madrasa education became the template for Islamic higher education worldwide, and the durability of institutions like al-Azhar in Cairo is directly attributable to the waqf endowment system that Nizam al-Mulk pioneered on this scale.
The Curriculum and Its Theological Purpose
The Nizamiyyah's curriculum was shaped by Nizam al-Mulk's explicit theological and juridical agenda. The primary fiqh (jurisprudence) taught was Shafi'i — the legal school of the Seljuk court and of most of the scholars Nizam al-Mulk recruited. The theology was Ash'ari — the mainstream Sunni theological school that al-Ash'ari (d. 324 AH) had developed as a via media between pure textualism and Mu'tazili rationalism.
Both of these choices were polemical in the context of the time. The Hanafi school of fiqh — which the Abbasid administration had traditionally favored — was in some tension with the Seljuk preference for Shafi'i. The Ash'ari theological school had opponents among the more Hanbali-inclined scholars who favored stricter textualism. By building the Nizamiyyah as a Shafi'i-Ash'ari institution and endowing it with enormous resources, Nizam al-Mulk was taking sides in ongoing theological and juridical debates and using state power to promote specific positions.
The practical result was that the Nizamiyyah trained a generation of scholars in Ash'ari theology who then dispersed across the Islamic world, carrying that tradition with them. This contributed to the eventual dominance of Ash'ari theology in Sunni Islam — a dominance that is still visible today in the theological curricula of al-Azhar and most traditional Islamic educational institutions.
The curriculum at the Nizamiyyah comprised the subjects standard in advanced Islamic education:
The Core Islamic Sciences: Quranic exegesis (tafsir), hadith and its sciences, fiqh and usul al-fiqh, and kalam (Islamic theology). These were the primary subjects for which the institution was established.
The Arabic Language Sciences: Grammar (nahw), morphology (sarf), rhetoric (balaghah), and poetry. Mastery of Arabic was the prerequisite for all other learning.
The Rational Sciences: Logic, mathematics, and elements of natural philosophy. The inclusion of logic reflects the Ash'ari commitment to rational argumentation in theological defense — al-Ash'ari himself had been trained in Mu'tazili kalami methods before developing his synthesis.
Al-Ghazali at the Nizamiyyah
The most famous chapter in the Nizamiyyah's history was the tenure of Abu Hamid al-Ghazali as its head teacher (ra'is al-asatidha) from 484-488 AH / 1091-1095 CE. Nizam al-Mulk personally invited al-Ghazali — then the most celebrated scholar in the Islamic world — to Baghdad, and al-Ghazali's arrival transformed the Nizamiyyah from a prestigious institution into the intellectual center of the Sunni world.
Al-Ghazali's lectures attracted hundreds of students and scholars. He was engaged simultaneously in his great philosophical critique — the Tahafut al-Falasifa (Incoherence of the Philosophers) — and in the political and theological controversies of the day. His mastery of Shafi'i fiqh, Ash'ari theology, Sufi spirituality, and philosophical argumentation made him uniquely equipped to address the full range of intellectual challenges facing Sunni Islam.
But al-Ghazali's most important act at the Nizamiyyah was ultimately to leave it. In 488 AH / 1095 CE, at the peak of his fame and influence, he abandoned his position, gave away most of his wealth, and left Baghdad for a decade of spiritual wandering. He later described this crisis in his autobiographical "al-Munqidh min al-Dalal" (Deliverance from Error): he had realized that his religious knowledge was all external performance, designed for reputation and status, while his inner life was empty. The Nizamiyyah position, with its vast prestige and social demands, was part of what he was fleeing.
The result of this crisis was the Ihya Ulum al-Din (Revival of the Religious Sciences) — arguably the most influential work in the history of Islamic spirituality and ethics. Al-Ghazali's departure from the Nizamiyyah was, paradoxically, among the most productive acts in the history of Islamic learning.
The Network: Madrasas Across the Empire
The Baghdad Nizamiyyah was the most famous but not the only institution Nizam al-Mulk established. He built Nizamiyyah madrasas in Nishapur (which was in some ways the more important intellectual center of Khorasan), Basra, Isfahan, Herat, Merv, Balkh, and other major cities of the Seljuk empire. This network constituted, in effect, the first state-funded university system in Islamic history — institutions linked not by a formal administrative hierarchy but by a shared model, shared curriculum emphasis, and shared funding mechanism.
The Nishapur Nizamiyyah was particularly important. Nishapur was at this period one of the great intellectual cities of the Islamic world, and its Nizamiyyah trained scholars who would shape Islamic learning for generations. The Sufi theologian al-Qushayri was associated with Nishapur's scholarly community. The poet and mathematician Omar Khayyam worked nearby in Isfahan, though his relationship to the Nizamiyyah specifically was that of a parallel figure rather than a direct participant.
The Assassination of Nizam al-Mulk and Its Aftermath
Nizam al-Mulk was assassinated in 485 AH / 1092 CE by an operative of the Nizari Ismaili sect — the group known in Western historiography as the "Assassins," founded by Hasan ibn al-Sabbah. The Assassins had made the killing of Sunni political and military leaders a deliberate strategy for weakening the Seljuk state. Nizam al-Mulk was among their most significant targets — his death represented the removal of the empire's most competent administrator and its most ardent institutional supporter of Sunni scholarship.
Malik Shah died the same year, sending the Seljuk empire into a prolonged succession crisis. The network of Nizamiyyah madrasas survived this political upheaval because of the waqf endowments that funded them: the institutions continued to function even as the political structure that had created them fractured.
The Nizamiyyah's Legacy to World Education
The comparison with European universities is instructive. The University of Bologna — often cited as the oldest European university — was founded approximately 1088 CE, some twenty years after the Baghdad Nizamiyyah. Oxford University emerged in approximately 1096-1167 CE. These institutions and the Nizamiyyah developed in different intellectual traditions and served different social functions, but they are genuinely comparable: organized, endowed centers of higher learning with stable faculties, defined curricula, and formal mechanisms for certifying students' competence.
The Nizamiyyah model influenced Islamic education worldwide for centuries. The madrasa systems of Ottoman Turkey, Mughal India, Central Asia, and West Africa all trace their institutional structures — waqf funding, residential organization, ijaza certification, defined curriculum — to the patterns that Nizam al-Mulk established in Baghdad in 459 AH.
Sources:
- Nizam al-Mulk, Siyasatnama (Book of Government), trans. Hubert Darke (London: Routledge, 2002)
- Al-Ghazali, al-Munqidh min al-Dalal (Deliverance from Error)
- Ibn Khallikan, Wafayat al-A'yan
- Ibn al-Athir, al-Kamil fi al-Tarikh
- George Makdisi, The Rise of Colleges: Institutions of Learning in Islam and the West (Edinburgh: Edinburgh University Press, 1981)
- Jonathan Berkey, The Transmission of Knowledge in Medieval Cairo (Princeton: Princeton University Press, 1992)
- A.K.S. Lambton, "The Internal Structure of the Seljuq Empire," in J. A. Boyle (ed.), The Cambridge History of Iran, Vol. 5 (Cambridge: Cambridge University Press, 1968)
- Marshall Hodgson, The Venture of Islam, Vol. 2 (Chicago: University of Chicago Press, 1974)
For the Prophetic era, see the Seerah timeline .