Cathedral for nine centuries, mosque for five, museum for eighty-five, and a working mosque again since 2020. That last change is the one that matters for your visit — it decides which door you use, when you can go in, and what you need to wear.
Justinian's builders finished it in 537, and for close to a thousand years nothing larger was raised anywhere. The dome seems to float because its weight is carried outward through pendentives rather than down through walls — an engineering answer that had no precedent. It has been rebuilt after earthquakes, buttressed repeatedly, and it is still there. Whatever else you read about the building, the structure itself is the reason to go inside.
Orthodox cathedral until 1453, imperial mosque for nearly five centuries after, secular museum from 1935, and a functioning mosque again since July 2020. Each layer left something and covered something: Christian mosaics survive alongside vast calligraphic roundels, and the mihrab sits slightly off-axis because Mecca and the original apse do not align. That misalignment is the most eloquent detail in the room.
The famous ones are not at ground level. The Deësis, the Empress Zoe panel and the imperial portraits are in the upper gallery — which is precisely where the visitor route goes. Anyone who wanders in below and leaves disappointed has simply been in the wrong part of the building.
First thing in the morning, and not on a Friday if you can avoid it. Prayer closures are non-negotiable and the Friday midday one is the longest. The Blue Mosque, the Basilica Cistern and Topkapi are all within a few minutes' walk, so a single early start covers the whole of Sultanahmet before the coach groups arrive.
Pair Hagia Sophia with the Blue Mosque, the Basilica Cistern and a ferry across the Bosphorus on our complete Istanbul guide — or let the AI build your day-by-day itinerary.
Istanbul City Guide