Istanbul Hagia Sophia logo Istanbul Hagia Sophia

Hagia Sophia

Cathedral, mosque, museum — and mosque again. The complete independent guide to Istanbul’s most extraordinary building.

Start Planning Your Visit

What is Hagia Sophia?

Hagia Sophia is a 6th-century monument in Istanbul that has served as a Byzantine cathedral, an Ottoman imperial mosque, a museum, and — since 2020 — an active mosque once more. Completed in 537 AD under Emperor Justinian I, it was the largest enclosed space on Earth for nearly a thousand years, and its floating dome changed the course of architecture. Today it is officially the Hagia Sophia Grand Mosque (Ayasofya-i Kebir Cami-i Şerifi), and it remains the single most visited landmark in Türkiye.

The building stands on Sultanahmet Square in Istanbul’s old city, facing the Blue Mosque across a garden. Worshippers pray on the ground floor free of charge, while foreign visitors explore the upper gallery on a dedicated ticketed route — a change introduced in January 2024. If you are deciding when to come, our opening hours page covers prayer-time pauses, and when you are ready you can get skip-the-line tickets from our booking partner.

Why Hagia Sophia matters

Few buildings anywhere have carried this much history in one shell. For 916 years Hagia Sophia was the cathedral of Constantinople and the heart of Eastern Christianity — emperors were crowned under its dome, and its golden mosaics set the standard for Byzantine art. After the Ottoman conquest of 1453 it served 481 years as an imperial mosque, reshaping Islamic architecture in turn: the great mosques of Istanbul, including the Blue Mosque and Süleymaniye, are all in conversation with it. Its engineering — a massive masonry dome seemingly suspended over light — had no equal when it was built and very few since.

The name is Greek: Hagia Sophia means “Holy Wisdom,” not “Saint Sophia” — the church was dedicated to the Wisdom of God, and how the name is pronounced and what it means is a story of its own. So is the building’s modern identity: the question “is Hagia Sophia a mosque?” has had four different answers across sixteen centuries.

Visiting Hagia Sophia in Istanbul

A visit is straightforward once you know the current rules: enter as a tourist via the visitor entrance, dress for a working mosque (see the dress code), and time your visit between prayers. The building sits one tram stop from the Grand Bazaar and next door to Topkapı Palace and the Basilica Cistern, so most travellers plan it as part of a Sultanahmet day. Getting there is easy — tram T1 stops a two-minute walk away (see how to get there). When you’re ready to lock in a time, book your visit online to skip the ticket queue.

Explore the guide

Stories & deep dives

All articles →

Ready to see it for yourself?

Entry for foreign visitors is ticketed. Book ahead and walk past the ticket queue.

Get Skip-the-Line Tickets

Frequently Asked Questions

Is Hagia Sophia a mosque or a museum?

Hagia Sophia has been an active mosque again since July 2020. It began as a Byzantine cathedral in 537 AD, became an Ottoman mosque in 1453 and served as a museum from 1935 to 2020. Tourists can still visit — foreign visitors use a dedicated upper-gallery route.

Do you need tickets to visit Hagia Sophia?

Since January 2024, foreign visitors pay an entrance fee (about €25) to visit via the upper-gallery visitor route. The ground floor remains free for worshippers. You can book skip-the-line tickets online in advance.

What are the Hagia Sophia opening hours?

The visitor route is open daily from about 09:00 to 19:00. Because Hagia Sophia is a working mosque, tourist entry pauses around the five daily prayer times — the Friday midday prayer causes the longest pause.

How long do you need inside Hagia Sophia?

Most visitors spend 45 minutes to 1.5 hours. Allow extra time in high season for the security queue, and combine your visit with the Blue Mosque and Basilica Cistern, both a short walk away on Sultanahmet Square.

More questions — photography, accessibility, what to combine your visit with — are answered in the full Hagia Sophia FAQ.