Hagia Sophia: Istanbul’s Historical and Architectural Marvel

Europe · Türkiye · Istanbul

Hagia Sophia at a Glance

Few buildings anywhere have lived as many lives as Hagia Sophia — a Byzantine cathedral, an Ottoman imperial mosque, a secular museum, and a mosque again, all in the same structure on Istanbul’s historic peninsula. This guide covers its history, its record-setting dome, what you’ll see inside, and exactly what to know before you visit.

1,500 Years in One Building

Hagia Sophia’s identity has shifted three times, each era leaving its mark on the same walls. This was in fact the third church built on this exact site since the 4th century, the first two were destroyed by fire during civil unrest, including the devastating Nika riots of 532.

Byzantine Cathedral (532–1453)

Emperor Justinian I commissioned the current Hagia Sophia in 532, determined to build something no earlier structure on the site had managed. It was consecrated in 537 and served as the cathedral of Constantinople, and the spiritual center of Eastern Orthodox Christianity, for close to 900 years.

Ottoman Mosque (1453–1935)

After the 1453 conquest of Constantinople, Sultan Mehmed II converted the cathedral into an imperial mosque, adding minarets, a mihrab and a minbar while preserving the original structure. Hagia Sophia’s dome went on to directly influence Ottoman architecture, most famously in the work of the imperial architect Sinan.

Museum, Then Mosque Again (1935–Today)

Secularized into a museum in 1935 under the Turkish Republic’s reforms, Hagia Sophia held that status for 85 years, a period that saw many of its Byzantine mosaics uncovered and restored, until a 2020 Turkish court ruling restored it as a working mosque, its status today.

The Engineering Marvel of the Dome

What makes Hagia Sophia remarkable isn’t just its age, it’s the audacity of its engineering. Architects Isidore of Miletus, a geometrician, and Anthemius of Tralles, a mathematician, solved a problem that had stumped builders for centuries: how to place a perfectly circular dome on a square base.

  • Pendentives: curved triangular sections that transition smoothly from square corners to a circular rim, one of the most influential structural ideas in architectural history.
  • By the numbers: the dome rises roughly 55.6 meters above the floor and spans about 31 meters across, ringed by 40 windows that make it appear to float.
  • Rebuilt once already: the original dome collapsed after an earthquake in 558 and was rebuilt slightly taller and steeper by 562, the version that still stands today.
Hagia Sophia's dome and minarets rising above Istanbul's historic peninsula
The dome’s ring of 40 windows gives Hagia Sophia its famous, weightless-looking silhouette.

What You’ll See Inside

Step inside and the building’s dual identity is immediately visible. Ottoman-era calligraphic medallions bearing the names of Allah, Muhammad and the early caliphs hang from the piers, while Byzantine mosaics share the same walls just above the gallery level. Massive marble columns, many repurposed from earlier Roman and Greek temples, support the galleries overhead.

The Byzantine Mosaics

Three mosaics in the south gallery are the highlights for most visitors. The Deesis Mosaic depicts Christ flanked by the Virgin Mary and John the Baptist and is widely considered the finest surviving Byzantine figural mosaic. The Empress Zoe Mosaic shows Christ Pantocrator between Empress Zoe and her husband, Emperor Constantine IX, with the emperor’s face reworked more than once to reflect Zoe’s changing marriages. The Comnenus Mosaic, from around 1122, shows Emperor John II Comnenus, Empress Irene and their son presenting gifts to the Virgin and Child.

The Weeping Column

In the northwest corner stands the Weeping Column, also called the Wishing Column, a copper-clad pillar with a thumb-sized hole worn smooth by centuries of visitors. Local legend traces its dampness to the 13th-century appearance of Saint Gregory the Miracle Worker, and visitors still slip a thumb into the hole and turn it in a full circle while making a wish.

During prayer times, some Christian imagery is covered with curtains or screens out of respect for the space’s active religious use, then uncovered again afterward.

Visiting Hagia Sophia: What to Know Before You Go

Hagia Sophia is an active mosque. Since 2020 the ground floor has operated as a place of worship, and the details below matter more here than at most historic sites.

What Typical timing Good to know
Ground floor (worship) Open during visiting hours Free to enter
Upper galleries (mosaics) ~08:00–19:00 summer, later opening in winter Paid ticket required
Friday midday prayer ~12:00–14:30 Closed to sightseeing
Dress code Every visit Shoulders/knees covered; headscarf for women, not provided on-site

Hours, ticket policy and prices change periodically, confirm current details on an official or up-to-date source before you travel.

Making the Most of Your Time Inside

  • Time it right: arrive at opening or in the final 90 minutes of the day to avoid the largest tour groups.
  • Bring your own scarf: it covers you for nearby mosques too, like the Blue Mosque.
  • Look up: the marble floor medallions and the dome’s window ring are easy to miss at eye level.
  • Find the Weeping Column: in the northwest corner, one of the building’s most photographed small details.
  • Be considerate: photography is generally fine in tourist areas, but avoid photographing worshippers during prayer.

Nearby in Sultanahmet

Hagia Sophia sits at the center of Istanbul’s old city, and most visitors pair it with two or three neighboring sights on the same day.

  • Blue Mosque: directly across the square, still an active mosque with its own dress code and prayer-time closures, best visited right after or before Hagia Sophia.
  • Topkapi Palace: the former Ottoman imperial residence, a five-minute walk away, easily fills a half-day on its own with its treasury and harem sections.
  • Basilica Cistern: an underground Byzantine reservoir a short walk from Hagia Sophia, cool, atmospheric and quick to visit, usually 30–45 minutes.
Frequently Asked Questions

FAQ: Visiting Hagia Sophia

Is Hagia Sophia a mosque or a museum today?

It is an active mosque. It operated as a secular museum from 1935 to 2020, when a Turkish court ruling restored its status as a place of Muslim worship.

Can non-Muslim visitors still go inside?

Yes. Hagia Sophia remains open to visitors of all backgrounds outside of prayer times, and the upper galleries are specifically set up for sightseeing regardless of faith.

What should I wear to visit Hagia Sophia?

Modest clothing is required: shoulders and knees covered for everyone, and a headscarf for women. Shoes are removed before entering the prayer area, and clothing is not provided on loan, so bring your own scarf.

Is there an entrance fee?

The ground floor is free to enter as a place of worship. The upper galleries, which hold most of the Byzantine mosaics, are typically accessed with a paid ticket, check current pricing before your trip, as fees are adjusted periodically.

When is the best time to visit to avoid crowds?

Early morning at opening or the last hour or so before closing tend to be quietest. Avoid the Friday midday window, when the ground floor closes to tourists for congregational prayer.

How much time should I set aside?

Most visitors spend 45–90 minutes inside. If you’re pairing it with Topkapi Palace and the Basilica Cistern in the same day, budget a half-day for the wider Sultanahmet area.

Sources & Editorial Note

Last reviewed: July 30, 2026

  • UNESCO World Heritage Centre – Historic Areas of Istanbul, official listing
  • Hagia Sophia visitor guidance on dress code, hours, access and the mosaic collection, cross-checked across multiple current travel and museum resources

Hours, ticket prices and access rules for active religious sites change periodically; confirm current details before you travel.

Editorial approach

This guide combines verified historical facts with practical, up-to-date visitor guidance, reviewed for accuracy and updated as Hagia Sophia’s access rules evolve.

Leave a Reply

Your email address will not be published. Required fields are marked *