At the northern edge of Islamic Cairo, where the medieval city once ended and the open desert began, stands one of the most dramatic and enigmatic mosques in Egypt: the Mosque of Al-Hakim bi-Amr Allah. Completed in 1013 AD under the sixth Fatimid Caliph — one of the most controversial rulers in Islamic history — this vast structure was deliberately built just beyond the city walls of its time, a monumental threshold between the ordered world of the Fatimid capital and the unknown beyond.
What distinguishes Al-Hakim's mosque above all else is its minarets — two towers so unlike any others in Cairo that visitors often stop and stare in disbelief. Encased from base to mid-height in enormous cubic projections of solid stone, they have the appearance not of minarets but of fortifications: squat, immovable, defiant. Above these stone salients, the original slender shafts emerge and taper to their crowns, creating a visual tension between mass and delicacy that is unlike anything else in Islamic architecture. Inside the mosque, rhythmic pointed arches and windows calibrated to channel and diffuse light create what medieval sources called Jami' al-Anwar — the Mosque of Lights — a place where architecture and mysticism become inseparable.
In This Guide
Overview: A Mosque of Power and Mystery
The Mosque of Al-Hakim bi-Amr Allah sits at the northern end of Al-Muizz Street — the great medieval spine of Islamic Cairo — immediately inside the Bab al-Futuh gate. Its position was no accident. When Fatimid Caliph Al-Aziz Billah began construction around 990 AD, the site lay just beyond the northern walls of the Fatimid capital Al-Qahira. To build here was to mark the edge of the sacred city and to claim the threshold between civilization and wilderness for Islam. When Al-Hakim completed and dedicated the mosque in 1013 AD, the growing city was already beginning to absorb it — within decades, the mosque found itself embedded within the expanded urban fabric, its original peripheral drama transformed into civic prominence.
The mosque follows the classic Fatimid hypostyle plan: a large rectangular open courtyard (sahn) surrounded on all four sides by arcaded halls, with a deeper sanctuary on the qibla side facing Mecca. It measures roughly 120 by 113 metres — making it one of the largest mosques in Cairo — and its massive perimeter walls of stone and brick give it a distinctly fortified character even before the eye reaches the minarets. The overall impression is of controlled power: a building that does not invite so much as command.
Al-Hakim bi-Amr Allah: The Caliph Who Built in Contradiction
To understand the mosque, one must understand its patron — a ruler whose complexity and contradictions have fascinated and divided historians for a thousand years. Al-Hakim bi-Amr Allah (r. 996–1021 AD) was the sixth Caliph of the Fatimid dynasty, which ruled Egypt and much of the Islamic world from 909 to 1171 AD. He came to the throne at the age of eleven and ruled for a quarter century, during which time he combined moments of extraordinary administrative vision with acts of eccentric and sometimes brutal caprice that made him one of the most debated figures in medieval Islamic history.
Construction of the mosque begins under Caliph Al-Aziz Billah, Al-Hakim's father, on a site just north of the Fatimid city walls. The initial structure follows the standard Fatimid hypostyle plan on a grand scale.
Al-Hakim bi-Amr Allah ascends to the Fatimid caliphate at age eleven following his father's death. He continues and accelerates construction of the mosque that would bear his name, giving it particular personal attention.
Al-Hakim orders the minarets of the mosque to be encased in massive stone salients — cubic projecting blocks of solid masonry — reportedly to protect the original slender towers from earthquake damage. This unprecedented intervention transforms the minarets into unique fortress-like structures that have no parallel in Islamic architecture.
The mosque is formally completed and dedicated. It is designated as the primary congregational mosque of the Fatimid caliphate — the site for the great Friday prayers, Eid celebrations, and state religious ceremonies. Its full name, Jami' al-Anwar (the Mosque of Lights), reflects the deliberate play of light within its interior design.
Al-Hakim disappears mysteriously while on one of his nocturnal walks in the Muqattam hills — his body never found. His death (or disappearance, as some believed) gave rise to various legends. For the Druze religious community, who revere him as a divine figure, Al-Hakim did not die but went into occultation, and will return at the end of days.
Islamic Cairo, including the Mosque of Al-Hakim, is inscribed as a UNESCO World Heritage Site. Subsequent decades see significant restoration works, most notably supported by the Dawoodi Bohra community — a Shia Muslim group who venerate Al-Hakim — who undertook a comprehensive and controversial restoration of the mosque's interior and exterior beginning in the 1980s.
Al-Hakim's historical legacy is deeply layered. He issued remarkable edicts — banning certain foods, restricting women's movement, ordering the destruction of churches and synagogues (later rescinded), and requiring shops to open only at night. He was also a patron of learning, founding the Dar al-Hikmah (House of Wisdom) in Cairo — a great library and academy. Whether these contradictions reflect madness, political calculation, or genuine religious eccentricity remains debated. What is certain is that the mosque he built is among the finest architectural achievements of the Fatimid age.
Architecture: Fatimid Grandeur at Its Peak
The Mosque of Al-Hakim represents the full flowering of Fatimid architectural ambition in Cairo. Its plan — a large rectangular enclosure with a central courtyard surrounded by arcaded riwaqs — follows the tradition established by the earlier Mosque of Ibn Tulun, but here the Fatimid preference for stone construction (rather than brick) gives the building a heavier, more permanent character. The sanctuary hall on the qibla side is five aisles deep, its roof carried on a series of pointed arches supported by rectangular piers — a structural system of great clarity and visual rhythm.
The facade of the mosque, facing north toward Bab al-Futuh, is one of the most powerful in Islamic Cairo. A continuous blind arcade of pointed arches runs across the surface, punctuated by the projecting masses of the minarets and articulated by bands of carved decoration. The surface transitions from the heavy stone masonry of the lower sections to lighter brick construction above — a layering of materials that reflects the mosque's long construction history and multiple interventions over the centuries.
Within the sanctuary, the architectural effects are subtler but no less powerful. Columns salvaged from earlier structures alternate with new piers, creating a slightly irregular rhythm that catches the eye. Windows set at varying heights in the qibla wall admit light at different angles throughout the day, so that the interior is never twice the same — an effect almost certainly intentional, designed to create the sense of a living, breathing sacred space rather than a static monument.
The Fortress Minarets: Cairo's Most Unusual Towers
No element of Al-Hakim's mosque attracts more attention — or provokes more questions — than its minarets. They stand at the north-western and north-eastern corners of the mosque enclosure, flanking the main entrance facade, and their lower sections are unlike any other minarets in Egypt.
The Stone Salients: Protection or Statement?
When Al-Hakim ordered his minarets encased in stone around 1010 AD, he created something unprecedented. The original towers — slender cylindrical shafts of the type common in early Fatimid architecture — were enclosed within massive cubic projections of solid dressed stone, rising to roughly half the total height of each minaret. From a distance, these salients look like the corner towers of a fortification rather than the bases of minarets. Up close, they are even more impressive: each salient is a solid mass of finely cut stone, their surfaces relatively plain except for simple carved inscriptions and bands of geometric ornament at key transitions.
The stated rationale for the encasements — protection from earthquake damage — was plausible, given Cairo's seismic history. But the visual effect went far beyond structural reinforcement. The encased minarets gave the mosque a military, fortress-like character that distinguished it from every other religious building in the city. Whether this was also a statement of Fatimid power — a deliberate visual declaration of the caliphate's strength and permanence at the gateway to its capital — is an interpretation that most architectural historians find compelling alongside the practical explanation.
The Upper Shafts: Elegance Above the Stone
Above the stone salients, the original minaret shafts emerge in their original slender form — cylindrical, tapering slightly, and decorated with carved stucco bands and geometric patterns. The contrast between the massive lower masses and the delicate upper shafts is one of the most striking visual effects in Islamic Cairo: weight and lightness, fortification and aspiration, earth-bound solidity and upward reaching grace — all within a single architectural element. This contrast was almost certainly intentional: the minarets speak simultaneously of the earthly power of the caliphate and the spiritual aspiration of Islam.
🗼 Stone-Encased Minarets
Unique in Islamic architecture — the lower sections of both minarets are encased in massive cubic stone salients, giving them a fortress-like appearance found nowhere else in Cairo or the wider Islamic world.
🌟 Jami' al-Anwar
The mosque's secondary name — "Mosque of Lights" — reflects the deliberate use of windows and arches to create a mystical play of natural light within the sanctuary, a signature of Fatimid spiritual architecture.
◁ Rhythmic Pointed Arches
The interior arcades of the sanctuary hall deploy pointed arches in a steady, meditative rhythm that creates a hypnotic spatial progression from the entrance to the qibla wall and mihrab.
🏛️ Carved Stucco Panels
The spandrels and surfaces of the sanctuary carry finely carved stucco decoration in geometric and floral patterns — among the finest surviving examples of Fatimid ornamental plasterwork in Cairo.
📖 Kufic Inscriptions
A continuous band of Kufic Quranic inscription runs around the interior of the mosque, its angular geometry complementing the pointed arch structure beneath it.
🚪 Bab al-Futuh Proximity
The mosque sits immediately inside the Fatimid north gate Bab al-Futuh — together forming one of the most powerful architectural sequences at any medieval city entrance in the world.
The north facade of the mosque, seen from the street approaching Bab al-Futuh, presents one of the most memorable streetscapes in Islamic Cairo. The great gate itself, the mosque facade with its fortress minarets, and the flanking medieval walls together create a sequence of monumental architecture that has not substantially changed in outline since the 11th century — an extraordinarily rare urban survival anywhere in the world.
The Mihrab and Sanctuary
The mosque's mihrab — the niche in the qibla wall indicating the direction of Mecca — dates in its current form primarily from the 1980s restoration. The original Fatimid mihrab and its decorative programme were largely lost or damaged over the centuries of the mosque's varied uses. However, the spatial relationship between the mihrab and the five aisles of the sanctuary hall remains as originally designed: the central aisle is slightly wider than the flanking aisles, creating a subtle emphasis on the axis of prayer that the eye registers instinctively even without conscious analysis.
Light, Mysticism, and the Meaning of Al-Anwar
The name Jami' al-Anwar — the Mosque of Lights — is not merely poetic. It describes a specific and deliberate architectural achievement: the use of openings, arches, and surface reflections to flood the interior with a quality of natural light that was understood in medieval Islamic theology as a manifestation of the divine presence itself.
The Theology of Light in Fatimid Islam
The Fatimid caliphate subscribed to Ismaili Shia Islam, a tradition with a rich theology of light and esoteric knowledge. For Ismaili thinkers, light was not merely a physical phenomenon but a spiritual one — the emanation of divine intelligence into the material world, following the Neoplatonic philosophy that deeply influenced medieval Islamic thought. A mosque that was literally a "House of Light" was thus not simply a beautiful building but a theological argument made in stone and air: a space in which the faithful could perceive, in the quality of illumination around them, something of the nature of the divine.
How the Light Works
The windows of Al-Hakim's mosque are positioned and sized with considerable sophistication. In the sanctuary hall, windows set in the upper sections of the qibla wall admit the morning light at a low, raking angle that strikes the carved stucco surfaces and creates intense patterns of shadow and brightness — the geometric ornament seems almost to move as the light shifts through the morning hours. In the courtyard, the arcades create a contrasting rhythm of bright open space and shaded depth, so that the visitor moving from sun to shadow and back experiences an almost musical alternation of illumination and darkness. The pointed arches of the arcade, with their slightly different heights and proportions, catch the light differently from moment to moment, ensuring that the interior never reads as static or fixed.
Architectural Mysticism at Its Peak
Medieval sources praised Al-Hakim's mosque as the most luminous in Cairo — a quality that contemporaries clearly understood as more than aesthetic. The deliberate cultivation of light as a spiritual medium reached its peak in this building, and it represents the summit of a specifically Fatimid approach to sacred architecture: one in which the building itself becomes an instrument of spiritual experience, calibrated to act upon the worshipper's perception and, through it, upon his soul. Visiting the mosque today, when the late morning or early afternoon sun enters the sanctuary from the west and rakes across the carved surfaces of the arches and stucco panels, something of this original intention can still be powerfully felt.
Legacy, Later History, and the Bohra Restoration
After Al-Hakim's disappearance in 1021 AD and the eventual end of the Fatimid caliphate in 1171 AD, the mosque passed through many hands and many uses. It was used as a stable by Crusader prisoners during the brief Latin occupation of Cairo, as a storage depot by Saladin, and as a prison during the Mamluk period. It served as a warehouse under Ottoman rule and, in the 19th century, as a storehouse for antiquities. Through all these indignities, its basic structure survived — a testament to the quality of Fatimid construction.
In the 1980s, the Dawoodi Bohra community — a Shia Ismaili Muslim group based primarily in India and East Africa who venerate Al-Hakim as a sacred figure — undertook a comprehensive restoration of the mosque. The restoration was funded entirely by the community and was carried out with considerable care for the structural fabric, though the interior decoration — white marble surfaces, new carved stucco, and ornamental tilework — reflects Bohra aesthetic preferences more than a strict archaeological reconstruction of the Fatimid original. The result is a mosque that is clean, maintained, and actively used for worship, though specialists sometimes note the difference between the restored interior and what the Fatimid original likely looked like.
The mosque's significance within Islamic Cairo was formally recognised when the historic district was inscribed as a UNESCO World Heritage Site in 1979. Today Al-Hakim's mosque remains one of the anchor monuments of this designation — a building whose 1,000-year history encapsulates the extraordinary depth and complexity of Cairo's Islamic heritage.
Planning Your Visit to Al-Hakim Mosque
The Mosque of Al-Hakim is straightforward to visit and is most naturally combined with a walk along Al-Muizz Street and a visit to the nearby Fatimid gates of Bab al-Futuh and Bab al-Nasr — the best-preserved medieval city gates in Cairo.
| Location | Al-Muizz li-Din Allah Street, immediately inside Bab al-Futuh gate, Al-Gamaliya district, Cairo |
|---|---|
| Opening Hours | Daily: 9:00 AM – 5:00 PM (outside prayer times); closed during Friday noon prayers |
| Entrance Fee | Free or small donation; separate ticket for Bab al-Futuh and Bab al-Nasr towers (~EGP 60 foreigners) |
| Best Time to Visit | Morning (9:00–11:00 AM) for the best interior light effects; weekday for fewest visitors |
| Time Required | 45–60 minutes for the mosque; add 30 minutes for the adjacent Fatimid gates |
| Dress Code | Modest dress required; women must cover hair. Shoes removed at the entrance. |
| Getting There | Metro to Al-Shohadaa (Line 1 or 2), then 15-min walk north along Al-Muizz Street; or taxi/Uber |
| Photography | Generally permitted; always ask the guardian before photographing worshippers |
| Nearby Sights | Bab al-Futuh, Bab al-Nasr, Al-Muizz Street monuments, Khan el-Khalili (10 min walk south) |
| Accessibility | Ground floor mostly accessible; uneven stone paving in the courtyard |
Practical Visitor Advice
The mosque is an active place of worship maintained by the Dawoodi Bohra community, so respectful behaviour is particularly appreciated here. The restored interior is immaculate and the guardians are generally welcoming to respectful visitors. Bring a scarf for hair covering if you are a woman visiting — the guardians provide them, but having your own is more comfortable. The exterior minarets are best appreciated from the street outside, where you can step back far enough to take in their full extraordinary profile against the Cairo sky.
Who Will Love Al-Hakim Mosque
Architecture enthusiasts will find Al-Hakim endlessly fascinating — the fortress minarets alone justify the visit, and the spatial qualities of the interior reward patient attention. Historians interested in the Fatimid caliphate and its exceptional cultural achievements will find the mosque an essential primary source. Photographers will delight in the graphic power of the minarets against the sky and the patterns of light and shadow within the courtyard arcades. For anyone walking Al-Muizz Street — which should be a priority for every Cairo visitor — the mosque is a natural and important stop on the route.
Combining Al-Hakim with the Fatimid Gates
The Fatimid gates of Bab al-Futuh ("Gate of Conquests") and Bab al-Nasr ("Gate of Victory"), which stand immediately to either side of the mosque's position, are among the finest surviving examples of medieval military architecture in Africa. Built in 1087 AD by the Armenian general Badr al-Jamali, they feature massive round and square towers, vaulted interior chambers, and, at Bab al-Futuh, the opportunity to walk along a section of the original Fatimid city wall between the two towers. Tickets for the gates are sold separately and the experience — walking the medieval wall with views over the rooftops of Islamic Cairo — is not to be missed.
Frequently Asked Questions
Who was Al-Hakim bi-Amr Allah and why is he important?
Why are the minarets encased in stone blocks?
What does Jami' al-Anwar mean?
What happened to the mosque after the Fatimid period?
Is the mosque still active today?
How does Al-Hakim Mosque compare to Ibn Tulun Mosque?
Sources & Further Reading
The following authoritative sources informed the preparation of this guide and are recommended for readers wishing to explore the Mosque of Al-Hakim in greater depth.