Step through Al-Azhar's main gate and the mosque does not read as one building so much as several centuries layered on top of each other: a Fatimid core wrapped in later Mamluk gateways and minarets, with Ottoman-era additions filling in gaps left by a thousand years of continuous use. Unlike many historic mosques that function mainly as monuments today, Al-Azhar is still a working seat of religious teaching, with students and scholars moving through its courtyards alongside visitors. Its name is recognized across the Muslim world largely because of that continuity, not just because of its age.
This guide walks through why it was founded, how its name is explained, the architecture each ruling dynasty left behind, what the attached university actually represents, and what to know before visiting.
When Was Al-Azhar Mosque Founded, and Why?
Construction began in 970 CE on the order of Jawhar al-Siqilli, the general who had just conquered Egypt for the Fatimid caliph al-Mu'izz li-Din Allah, with the mosque formally inaugurated roughly two years later, in 972 CE. It was built as the main congregational mosque of al-Qahira (Cairo), the new fortified capital the Fatimids were laying out at the time, and it quickly became the dynasty's showcase institution for Shia Ismaili religious teaching.
The origin of the name "al-Azhar" ("the most radiant" or "the shining one") is debated even among specialists. The most commonly repeated explanation ties it to Fatima al-Zahra, the Prophet Muhammad's daughter and the ancestor through whom the Fatimids claimed their legitimacy, though some historians note the link is not confirmed in the earliest Arabic sources and point instead to the nearby Fatimid palaces, which were collectively known by a similar name. The mosque was originally called Jami' al-Qahira, "the mosque of Cairo," before the al-Azhar name took hold.
What Is Al-Azhar University, and Why Does It Matter?
Teaching circles formed inside the mosque almost from the start, and over subsequent centuries that informal instruction grew into Al-Azhar University, commonly listed among the oldest continuously operating degree-granting universities anywhere in the world. Today it remains one of the most influential centers of Sunni Islamic scholarship, training religious scholars from across the Muslim world in theology, law, and Arabic studies, alongside a modern university system that has expanded into secular faculties as well.
The Sunni identity is itself a later development worth noting: Al-Azhar began as a Fatimid Shia Ismaili institution, and it was only after the Fatimid dynasty fell in 1171 that the mosque and its teaching were reoriented toward Sunni orthodoxy under subsequent Ayyubid and Mamluk rulers, a reversal that makes its current status as a leading voice of Sunni Islam a genuine historical turn rather than an unbroken thread back to 970.
Explore Al-Azhar's Islamic Cairo Neighborhood
See Al-Azhar alongside the Citadel and Khan El-Khalili bazaar on a single day through Cairo's historic Islamic core.
How Did Al-Azhar's Architecture Change Across the Dynasties?
The oldest surviving elements date to the original Fatimid construction, most visibly the central court and the core of the prayer hall, built in the austere style typical of early Fatimid religious architecture. Little else from that first phase survives untouched, since nearly every ruling dynasty that followed added, rebuilt, or expanded some part of the complex.
The most visible additions came under the Mamluks: Sultan Qaytbay added the elegant main gate to the courtyard along with a minaret in the late 15th century, and Sultan al-Ghuri contributed a distinctive double-headed minaret in the early 16th century, both still among the mosque's most recognizable features. Ottoman-era patrons, particularly the 18th-century amir Abd al-Rahman Katkhuda, expanded the prayer hall further and added more gates and minarets, so that a visitor today is really walking through roughly five centuries of successive renovation rather than a single architectural plan. Historians still debate some of the exact dates and attributions, since several rulers restored or renamed the same structures over time.
What Will You See Inside the Mosque Today?
Past the Qaytbay gate, the mosque opens onto a large rectangular courtyard surrounded by covered arcades, with the prayer hall itself extending along one side, supported by rows of columns, many reused from earlier Roman and Byzantine-era structures, a common practice in early Islamic construction across Egypt. Several minarets of different eras rise from different corners of the complex rather than one matching pair, a visible reminder of the mosque's piecemeal growth.
Students and scholars still use parts of the complex for teaching and study, so visitors will typically see small study circles or individuals reading quietly in the arcades alongside tourists moving through, a working religious and educational institution rather than a mosque preserved purely as a historic site. Look up at the different minarets as you move through the courtyard; each one, roughly, marks an addition from a different century and ruling dynasty rather than a single coordinated design.
What Should Visitors Know Before Going?
Modest dress is expected throughout, covering shoulders and knees for everyone, and women are required to wear a headscarf inside the prayer hall; a scarf can usually be borrowed or rented at the entrance if needed. Shoes come off before entering the carpeted prayer hall, as at any working mosque, and visiting outside of the five daily prayer times, particularly Friday midday prayers, generally allows for a calmer, less crowded look around.
Al-Azhar sits only a short walk from Al-Hussein Mosque and Khan El-Khalili bazaar, and most visitors combine the three in a single outing through this part of Islamic Cairo rather than treating Al-Azhar as a standalone stop.
Is Al-Azhar Mosque Worth Visiting?
Yes, both for what it looks like and for what it still does. Few religious sites anywhere combine a thousand-year, uninterrupted teaching tradition with such a visible record of several distinct building phases stacked on top of each other, and the mosque's continued use as a working seat of Islamic scholarship gives it a living quality that a purely preserved monument cannot match.
Visit it alongside the surrounding Islamic Cairo heritage sites for a fuller picture of how this one neighborhood shaped centuries of religious and commercial life in the city. Few other stops on a Cairo itinerary offer quite the same sense of layered time in a single, walkable space.
Frequently Asked Questions
When was Al-Azhar Mosque built?
Construction began in 970 CE under the Fatimid general Jawhar al-Siqilli, with the mosque formally inaugurated in 972 CE.
Is Al-Azhar University really one of the oldest in the world?
It is commonly cited as among the oldest continuously operating degree-granting universities, having grown out of teaching circles inside the mosque that trace back close to its founding, though its modern university structure developed much later.
Was Al-Azhar always a Sunni institution?
No. It was founded as a Shia Ismaili Fatimid institution and only reoriented toward Sunni orthodoxy after the Fatimid dynasty fell in 1171, under later Ayyubid and Mamluk rule.
What should I wear to visit Al-Azhar Mosque?
Modest clothing covering shoulders and knees, with a headscarf required for women inside the prayer hall; shoes come off before entering the carpeted areas.
Is Al-Azhar Mosque near Khan El-Khalili?
Yes, it is a short walk from both Khan El-Khalili bazaar and Al-Hussein Mosque, within the same historic district of Islamic Cairo.