Hagia Sophia
Cathedral, mosque, museum — and mosque again. The complete independent guide to Istanbul’s most extraordinary building.
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
History
From Justinian’s cathedral of 537 AD to church, mosque, museum — and mosque again.
What to See Inside
The dome, the upper gallery, the omphalion and where to look first.
Architecture & Dome
How two geometers hung a 31-metre dome over open air in the 6th century.
The Mosaics
The Deesis, the Virgin and Child, the imperial panels — and what you can see today.
Photos
What Hagia Sophia really looks like: the dome, the mosaics, the square — in pictures.
Opening Hours
Daily visiting hours, prayer-time pauses and the quietest times to go.
How to Get There
Tram T1 to Sultanahmet, routes from both airports and from Taksim.
Dress Code
What men and women need to wear inside a working mosque.
Plan Your Visit
Entrances, tickets, timing and how to combine it with the Blue Mosque.
Stories & deep dives
- Hagia Sophia History and Experience Museum: Worth It?
The Hagia Sophia History and Experience Museum opened in 2024 next to the square, telling about 1,700 years of story in immersive media. Is it worth your time?
- 15 Fascinating Hagia Sophia Facts
From Viking graffiti to a dome rebuilt six metres higher, 15 Hagia Sophia facts that explain why this building has amazed visitors for nearly 1,500 years.
- Hagia Sophia Meaning & Pronunciation, Explained
Hagia Sophia means 'Holy Wisdom' in Greek, dedicated to Christ, not a saint named Sophia. The name's story, plus how to say it in English and Turkish.
- Hagia Sophia vs Blue Mosque: What's the Difference?
Hagia Sophia and the Blue Mosque face each other across one square. How they differ in age, interiors, entry and crowds, and the smart order to see both.
- Is Hagia Sophia a Mosque? The Full Story
Yes, Hagia Sophia is an active mosque again since July 2020. Here's how it went from cathedral to mosque to museum and back, and what visitors should know.
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.