Al-Azhar Mosque, located near the Hariri Market in Cairo's Old City, Egypt, was begun in 970 by Fatimid general Zahir. Spanning 12,000 square meters, it is one of the oldest surviving mosques in the Islamic world.
Named after Fatima, the daughter of the Prophet Muhammad, the mosque was initially a religious site. In 988, Caliph Aziz established a school within its annex, becoming the precursor to Al-Azhar University.
The complex includes courtyards, 13 platforms, 9 gates, and 6 minarets, exhibiting North African and ancient Spanish Islamic styles. During the Fatimid dynasty, it served as a center for the dissemination of Shia Islam. After being closed by Saladin of the Ayyubid dynasty in 1171, it was reopened by Baibars I of the Mamluk dynasty in the 13th century and transformed into a Sunni academic center.
In 1930, according to Egyptian law, the mosque and university were formally separated.
In 1961, Al-Azhar University added modern disciplines such as engineering and medicine and established branch campuses both domestically and internationally. The Imam is appointed by the President and is responsible for managing religious affairs and adjudicating disputes. The modern Al-Azhar education system covers primary school to university and accepts only Muslim students.