Istanbul, Türkiye
Hagia Sophia, four buildings in one
A Byzantine cathedral, an Ottoman mosque, a 20th-century museum and now a mosque again — and every layer of that history is still visible on the walls at once.
Fifteen centuries, three religions, one dome that still startles engineers
No building in Istanbul carries more contradictory history in one structure than Hagia Sophia. It was completed in 537 CE under the Byzantine emperor Justinian I as the great cathedral of Constantinople, the largest enclosed space on earth for nearly a thousand years, and its dome — 31 metres across, seemingly floating on a ring of windows — was so structurally audacious that later Ottoman architects, most famously Mimar Sinan, studied it for generations trying to understand and surpass it. Structural engineers still find its ninth-century-old dome technically impressive today; it has partially collapsed and been rebuilt more than once, and the buttressing added over the centuries is itself a visible timeline of medieval and early modern engineering.
When Ottoman forces took Constantinople in 1453, Sultan Mehmed II converted the cathedral into a mosque within days of the conquest, adding a mihrab, a minbar, and eventually four minarets, while leaving much of the Byzantine structure and a great deal of its Christian mosaic work intact underneath layers of plaster. In 1934, the secular Turkish Republic under Atatürk converted it again, this time into a museum, stripping back some of the plaster to reveal Byzantine mosaics that had been hidden for nearly five centuries and displaying Christian and Islamic elements side by side as a monument to the country's layered history rather than to either faith exclusively.
That arrangement lasted until 2020, when a Turkish court ruling and presidential decree reconverted Hagia Sophia into a working mosque, which is how it operates today — free to enter, but with visiting hours and rules now built around the five daily prayer times rather than fixed museum opening hours. What makes a visit worthwhile is precisely this unresolved layering: mosaics of Christ Pantocrator and the Virgin Mary share the same walls as massive black-and-gold Arabic calligraphy roundels bearing the names of Allah, Muhammad and the early caliphs, sometimes only metres apart, a physical record of the city changing hands that no other building in Istanbul preserves so completely.
Fifteen centuries in one buildingA cathedral, a mosque, a museum, a mosque
The current structure is technically the third church on the site — the first two, built in the 4th and 5th centuries, were destroyed by riots and fire before Justinian commissioned the version standing today, reportedly completed in under six years by the mathematicians Isidore of Miletus and Anthemius of Tralles, an unusually fast and ambitious build for the period. For close to a millennium it was the spiritual centre of Eastern Orthodox Christianity and the site of imperial coronations, until the 1453 Ottoman conquest ended the Byzantine Empire and began the building's second life.
The Ottoman period added the minarets, the massive calligraphy roundels bearing the names of God and the early caliphs, and a mihrab set slightly off-axis from the building's original centre line, because Christian churches face east while mosques must face Mecca — a small architectural compromise that is easy to miss but tells you exactly how the building was adapted rather than rebuilt. The 1934 museum conversion, and the mosaic restoration work that came with it, is why visitors today can still see faces of Christ and the Virgin Mary that Ottoman-era plaster had protected rather than destroyed for nearly 500 years — an accident of preservation as much as a deliberate one.
Inside the buildingWhat you'll actually see
As a working mosque, the ground floor is laid with prayer carpets and the mihrab and minbar are in active liturgical use, so a visit today feels different from the museum era — quieter in tone, shoes off at the entrance, headscarves required for women, and a general expectation of modest dress and hushed behaviour throughout, mosque or not. The building's overwhelming first impression remains the dome itself: stand roughly beneath its centre and look straight up at the ring of forty windows around its base, which is what gives the whole structure its famous illusion of a dome resting on light rather than stone.
The most significant surviving Byzantine mosaics — including the Deësis mosaic of Christ flanked by John the Baptist and the Virgin Mary, widely considered one of the finest surviving works of Byzantine art — are up in the upper gallery, which requires a separate, often longer queue and is not always open during regular prayer-time visiting hours. Ground-floor highlights worth seeking out include the Weeping Column, a bronze-clad pillar visitors traditionally place a thumb into and rotate for good luck, and the Ottoman-era library and sultan's loge tucked into corners of the main hall that most rushed visitors walk straight past.
Visiting logisticsPrayer times, queues and what to wear
Hagia Sophia is free to enter as a mosque, which has removed the old museum-era ticket queue but replaced it with a different bottleneck: entry closes to non-worshippers around each of the five daily prayer times, and the building can fill for Friday midday prayers specifically, so a visit that ignores the prayer schedule risks being turned away or rushed. Arriving right at opening, before both the general crowds and the first midday closures, is consistently the best strategy, echoing the advice on nearly every other major Istanbul sight.
Dress modestly — shoulders and knees covered for everyone, and women should bring a scarf to cover their hair, though scarves are also usually available to borrow at the entrance if you forget. Shoes come off before entering the main prayer hall and are carried in a provided plastic bag; expect airport-style security screening at the entrance. The upper gallery with the best Byzantine mosaics has historically operated on separate hours and occasionally a separate small fee structure since the 2020 conversion, so check current signage or the official visitor information on arrival rather than assuming ground-floor access covers everything.
In the neighbourhoodWhat's around it
Hagia Sophia sits at one end of Sultanahmet Square, directly facing the Blue Mosque across a shared garden, which makes pairing the two in a single morning the single most obvious move in Istanbul — most visitors do exactly this, so expect both to be busiest between mid-morning and early afternoon. The Basilica Cistern, the atmospheric sixth-century underground reservoir with its carved Medusa-head columns, is a two-minute walk away and works well as a cooler, quieter contrast to two back-to-back religious monuments.
Topkapı Palace, the sprawling former seat of Ottoman sultans, is a short walk further into the old city and easily fills the rest of a day if combined with the two mosques and the cistern. The whole Sultanahmet peninsula is walkable end to end, so there is little reason to plan transport between any of these four sights — the challenge is pacing yourself across what is, realistically, close to a full day of world-class sightseeing within a few hundred metres.
Field intelligencePractical info
- Hours
- Open outside the five daily prayer times, which shift throughout the year with the Islamic calendar and sunrise/sunset; closes to non-worshippers for a period around Friday midday prayers specifically.
- Getting there
- In Sultanahmet on Istanbul's historic peninsula, directly across the square from the Blue Mosque; reachable via the T1 tram line to the Sultanahmet stop.
- Good to know
- Entry is free. Modest dress is required — shoulders and knees covered, and a headscarf for women, though scarves can usually be borrowed at the entrance. Shoes are removed before entering and carried in a provided bag.
Before you goCommon questions
- Is Hagia Sophia a mosque or a museum?
- It has been a working mosque since a 2020 court ruling and presidential decree reconverted it from the museum status it held between 1934 and 2020. Entry is free, but visiting hours are now structured around the five daily prayer times rather than fixed museum hours.
- Do I need to buy a ticket for Hagia Sophia?
- No — entry to the main mosque level is free. The upper gallery, which holds the best-preserved Byzantine mosaics, has historically kept separate hours and occasionally a small fee since the 2020 conversion, so check current signage on arrival.
- Can non-Muslims visit Hagia Sophia?
- Yes, non-worshipping visitors are welcome outside prayer times, provided they follow the dress code — modest clothing, a headscarf for women, and shoes removed at the entrance — and remain respectful of the building's active religious use.
- How much time should I spend at Hagia Sophia?
- Thirty to forty-five minutes covers the main hall and dome for most visitors; add extra time if the upper gallery with the Byzantine mosaics is open, since it's a separate, often slower-moving queue and gallery.
- What is the best time to visit Hagia Sophia?
- Right at opening, before both the tourist crowds and the first midday prayer closure. Avoid the window around Friday midday prayers specifically, when the mosque fills for congregational worship and non-worshipper access is most restricted.