historybriefs
all subjects →
13:00in productionCh. 1 · Built by a Shia caliphate/ 13:00 · ceiling 15 min
Religion · Medieval

Al-Azhar University

970

Al-Azhar was built by a Shia dynasty to teach Shia doctrine, and it is now the most prestigious centre of Sunni learning in the world, a reversal owed to Saladin, who purged its library rather than the mosque itself.

Founded by the Fatimid caliphate between 970 and 972 to promote Ismaili Shia teaching in newly conquered Egypt, Al-Azhar was repurposed after Saladin's twelfth-century conquest into a Sunni Shafi'ite institution, a transition that reportedly involved destroying a large part of its original library. Mamluk patronage and Ottoman-era prestige built it into the leading centre of Sunni Islamic learning, and Gamal Abdel Nasser's 1961 reforms added secular faculties, turning a traditional madrasa into a modern university that today oversees a national school network reaching some two million students.

Chapters & takeaways6
  1. 0:08
    Built by a Shia caliphate

    The Fatimid caliph al-Mu'izz commissioned Al-Azhar in 970, completed in 972, naming it for Fatimah, daughter of the Prophet Muhammad.

  2. 2:10
    A teaching program with thirty-five scholars

    Vizier Ya'qub ibn Killis formalised Al-Azhar as a centre of higher learning in 988, with dozens of permanent scholars teaching law, logic, and astronomy.

  3. 4:20
    Saladin's purge

    Saladin's conquest of Egypt ended Fatimid rule and Shia teaching at Al-Azhar, an episode the sources say involved the disposal of a very large part of its library, estimated in the hundreds of thousands or more.

  4. 6:30
    Mamluk patronage restores its prayers and its prestige

    Sultan Baibars restored congregational prayers in 1266, and Mamluk-era endowments, stipends, and new madrasas turned Al-Azhar into a genuinely prestigious institution again.

  5. 8:40
    The preeminent seat of Sunni learning

    Under Ottoman rule Al-Azhar became the leading institution for Sunni Islamic scholarship, formalised through the office of the Shaykh Al-Azhar.

  6. 10:50
    From madrasa to modern university

    Gamal Abdel Nasser's 1961 reforms added secular faculties including medicine and engineering, turning Al-Azhar into a modern university system serving roughly two million students today.

Worth your time?

Yes. Study the whole thing.

4.5/ 5
What works
  • the reversal from Shia foundation to Sunni authority is the spine of the piece and it holds together well
  • the 1961 secular-faculty reform gives the institution a clear, dated modern turning point
What does not
  • the wide range given for the library's destruction under Saladin, from thousands to millions of volumes, is left as a range rather than resolved
Study it if
  • readers interested in Sunni-Shia religious history told through one institution
  • anyone curious how a school built for one doctrine became the leading authority for its rival
Skip it if
  • readers wanting a purely architectural history of the mosque building itself
The written brief3 min read

Built by a Shia caliphate

Al-Azhar was commissioned by the Fatimid caliph al-Mu’izz li-Din Allah, with construction beginning in 970 and continuing until 972, shortly after the Fatimid conquest of Egypt had established a new Ismaili Shia caliphate based in the newly founded city of Cairo. The mosque’s name honours Fatimah, the daughter of the Prophet Muhammad, reflecting the Fatimid dynasty’s claim to legitimacy through descent from her line. Its construction was overseen by the Fatimid general Jawhar al-Siqilli on the caliph’s behalf, and the first Friday prayers were held there in the summer of 972, marking the mosque’s transition from building project to functioning religious institution serving the new capital’s population.

A teaching program with thirty-five scholars

Teaching activity at Al-Azhar was formalised relatively soon after its founding. In 988, the vizier Ya’qub ibn Killis established a structured program of study there, backed by dozens of salaried scholars, roughly three dozen by the sources’ account, teaching Islamic jurisprudence and law alongside subjects including logic and astronomy. This deliberate investment in scholarship reflected the Fatimid state’s interest in using Al-Azhar as an instrument for promoting Ismaili Shia doctrine throughout a newly conquered and religiously mixed population, making the mosque from its early years both a place of worship and a state-sponsored centre for religious instruction and doctrinal training aligned with the ruling dynasty’s own beliefs.

Saladin’s purge

That original religious orientation ended abruptly when Saladin, founder of the Sunni Ayyubid dynasty, conquered Egypt in the twelfth century and dismantled Fatimid religious authority. Congregational prayers at Al-Azhar were suspended and student stipends eliminated as part of this transition, and sources describing the episode give widely varying figures, from around 120,000 up to two million volumes, for how many books from the mosque’s Shia-era library were destroyed or dispersed during the purge that followed. Saladin also had a silver band bearing the names of Fatimid caliphs removed from the mihrab, a symbolic as well as material erasure of the dynasty that had built the institution, reoriented afterward toward Shafi’ite Sunni teaching.

Mamluk patronage restores its prayers and its prestige

Al-Azhar’s prayers and prestige were restored gradually rather than immediately. Sultan Baibars reinstated congregational prayers in 1266, nearly a century after Saladin’s conquest, and the Mamluk period that followed brought sustained investment: instructor salaries, student stipends, and formal endowments, alongside new teaching buildings including a college constructed in 1340 and additional madrasas built into the mosque complex in the early fourteenth century. The historian and scholar Ibn Khaldun taught at Al-Azhar beginning in 1383, evidence of the institution’s renewed standing within the wider Islamic scholarly world by the later Mamluk era, a recovery built on patronage rather than any change in the mosque’s underlying religious orientation, which remained firmly Sunni.

The preeminent seat of Sunni learning

Ottoman rule, beginning in the early sixteenth century, consolidated Al-Azhar’s position further, and the institution came to be regarded as the preeminent centre for Islamic learning within the Sunni world during this period, even without the same scale of direct royal patronage the Mamluks had provided. The office of Shaykh Al-Azhar, the institution’s senior religious authority, was established during the Ottoman era, formalising a leadership role for the mosque and its scholars within the broader structure of Sunni religious authority across the empire. This period cemented a reputation that has persisted into the modern era, with Al-Azhar’s rulings and its scholars continuing to carry particular weight across the Sunni Muslim world well beyond Egypt’s own borders.

From madrasa to modern university

The institution’s most significant modern transformation came in 1961, when Egyptian president Gamal Abdel Nasser added secular faculties, including business, medicine, engineering, and pharmacy, alongside a new faculty for women, converting Al-Azhar from a traditional madrasa focused on religious instruction into a modern university offering a much broader curriculum. Administrative separation between the university and the mosque itself followed the 1952 Egyptian Revolution, and today Al-Azhar oversees a national network of schools serving an estimated two million students, alongside its continuing role as a leading voice for a centrist strand of Sunni Islamic thought known as wasatiyya, positioned explicitly against more extremist interpretations of the faith.

Same strand · Religion4 of 20
Up next in History

Al-Biruni

· 13:00

A scholar who may have arrived in Ghazni as a prisoner of the sultan who conquered his homeland went on to write the most even-handed medieval account of India that survives, sponsored by the same military campaigns that made study of it possible.

13:00