Al-Nizamiyya of Baghdad

Al-Nizamiyya of Baghdad (المدرسة النظامية), one of the first nizamiyehs, was established in 1065 in Baghdad. The Nizamiyya School was considered among the most important and prestigious educational institutions of the Abbasid era, along side with the Mustansiriya School. It has been described as the "largest university of the Medieval world." The Nizamiyya school was completely Shafi'i. One of its requirements was that all teachers, preachers, and librarians be Shafi'i in jurisprudence and Ash'ari in theology. This school was home to prominent Shafi'i jurists including Abu Ishaq al-Shirazi, Ibn al-Sabbagh, Abu Sa'ad al-Mutawalli, Abu Hamid al-Ghazali, and Al-Kiya al-Harrasi.

In July 1091, Nizam al-Mulk appointed the 33-year-old al-Ghazali as a professor of the school. Offering free education, Ibn Tumart, founder of the Berber Almohad dynasty, reputedly attended the school and studied under Al-Kiya al-Harrasi. Nizam al-Mulk's son-in-law Mughatil ibn Bakri was also employed by the school. In 1096, when al-Ghazali left the nezamiyeh, it housed 3,000 students. In 1116, Muhammad al-Shahrastani taught at the nezamiyeh. In the 1170s, statesman Beha ud-Din taught at the nezamiyeh, before he moved on to teach in Mosul, while Imad ad-Din al-Isfahani studied there in the late 12th century. Others affiliated with the Nizamiyya of Baghdad include Asad Mayhani, Ayn al-Quzat Hamadani and al-Janzi.

The Persian poet Saadi Shirazi studied at the nezamiyeh during the early 13th century, when he set out on a journey. He was also among those who witnessed first-hand accounts of its destruction by Mongol Ilkhanate invaders led by Hulagu during the Sack of Baghdad in 1258. He recalls clearly his days of studies at the al-Nizamiyya in Baghdad "A fellow-student at Nizamiah displayed malevolence towards me, and I informed my tutor, saying 'Whenever I give more proper answers than he the envious fellow becomes offended.' The professor replied 'The envy of thy friend is not agreeable to thee, but I know not who told thee that back-biting was commendable. If he seek perdition through the path of envy, thou wilt join him by the path of slander.'"

The curriculum initially focused on religious studies, Islamic law, Arabic literature, and arithmetic, and later extended to history, mathematics, the physical sciences, and music.