Hagia Sophia is a sixth-century Byzantine church in Istanbul's Sultanahmet district that has served as a cathedral, an imperial mosque, a museum and, since 2020, a working mosque again. Emperor Justinian I dedicated the current building in 537, which makes it close to 1,500 years old. Today foreign visitors enter through a separate ticketed route that leads to the upper gallery, while the ground-floor prayer hall is reserved for worshippers.

That split shapes every visit. You see the famous mosaics, marble and views down into the nave from above, you need a ticket, and you should plan around prayer times and the dress code. The sections below cover what the building is, how its story unfolded and what to expect at the door in 2026.

What is Hagia Sophia?

Hagia Sophia, officially the Hagia Sophia Grand Mosque (Ayasofya-i Kebir Camii in Turkish), is the most important surviving building of the Byzantine Empire. Its name is Greek for "Holy Wisdom". The church was dedicated to the Wisdom of God, not to a saint called Sophia, which is a common misunderstanding.

The building stands in the historic peninsula of Istanbul, the old city once called Constantinople. It is part of the Historic Areas of Istanbul, a site inscribed on UNESCO's World Heritage List in 1985. UNESCO cites Hagia Sophia's dome as an example of sixth-century architectural and decorative expertise.

When and how was Hagia Sophia built?

The building you see today is the third church on the site. The second was burned during the Nika riots of 532, and Justinian ordered a replacement almost immediately. Construction took less than six years, and the emperor and Patriarch Menas inaugurated the new basilica on 27 December 537.

Justinian did not use a conventional master builder. He chose two scholars of geometry and mechanics, Anthemius of Tralles and Isidore of Miletus. Their design placed a vast dome over a square space using pendentives, the curved triangular sections that carry a round dome on four arches. The result was the largest interior space in the world at the time, and for centuries afterwards no church surpassed it in size.

The dome proved fragile. Earthquakes in 553 and 557 cracked it, and part of it collapsed in 558. It was rebuilt with a steeper profile under Isidore the Younger, a nephew of Isidore of Miletus. The buttresses and repairs added over the following centuries are part of why the exterior looks heavier than the airy interior suggests.

From church to mosque to museum and back

The building's changes of use mirror the history of the city. Each phase left visible traces, so it helps to know them before you go inside.

PeriodStatusWhat you can still see537–1453Cathedral of Constantinople and setting for Byzantine imperial ceremoniesThe dome and galleries, marble revetment, and gold-ground mosaics of emperors, empresses and Christ1453–1934Imperial mosque after the Ottoman conquest under Sultan Mehmed IIMinarets, the mihrab facing Mecca, the minbar and the large calligraphic roundels1934/35–2020Museum, by decision of the Turkish Republic's Council of Ministers in 1934, opened in 1935Mosaics uncovered and conserved during the museum era2020–todayMosque again, after Turkey's Council of State annulled the 1934 decision on 10 July 2020Carpeted prayer hall, separate visitor route to the upper gallery

The 2020 change was controversial. UNESCO and many international organisations expressed concern, and the building's status remains a sensitive subject for different communities. Inside, visitors see Christian and Islamic elements side by side.

Where is Hagia Sophia?

Hagia Sophia faces Sultanahmet Square in the Fatih district of Istanbul, on the European side of the city. The Blue Mosque (Sultan Ahmed Mosque) stands across the square. The Basilica Cistern is a short walk away, and Topkapı Palace lies just behind Hagia Sophia, up the hill.

The simplest way to arrive is the T1 tram to the Sultanahmet stop. Because these landmarks sit so close together, many visitors combine Hagia Sophia with the Blue Mosque and the Basilica Cistern (Yerebatan Sarnıcı) in a single morning or afternoon. Our first-timer's guide to Istanbul's historic old city helps you put the rest of the area in order.

How visiting works now

Separate entrance for visitors

Since 15 January 2024, worshippers and cultural visitors use different entrances. Turkey's Ministry of Culture and Tourism said visitors would enter by a ramp on the south side, tour the gallery level and leave by a ramp on the northeast side. From the gallery you look down onto the prayer hall, pass through the marble door known as the Gate of Heaven and Hell, and see the Byzantine mosaics up close. The ministry also introduced a QR-code audio system so visitors can listen quietly on their own phones.

Go with the right expectation. Most of the ground floor is not part of the visitor route, so you won't walk across the main prayer hall as museum visitors once did.

Tickets

Foreign visitors need a ticket. When the separate route opened in January 2024, the fee was set at 25 euros, and visitor reports from mid-2026 still gave the same figure. Turkish citizens coming to pray use the worshippers' entrance and are not charged. The Istanbul Museum Pass is widely reported not to cover Hagia Sophia, so don't count on it.

Many websites carry the Hagia Sophia name but are resellers, and some charge well above the gate price. Buy at the official ticket office on site, or check exactly what a third-party ticket adds before you pay, for example a timed slot or a guide.

Opening hours and prayer times

The visitor gallery opens daily from morning until early evening, but published hours vary between sources and change with the season. On Fridays the gallery closes around midday prayer, roughly from noon until mid-afternoon. Check the hours on the day of your visit, and avoid planning a tight Friday schedule around Hagia Sophia.

Dress code

Hagia Sophia is a working mosque, so modest dress is required:

  • Women cover their hair with a headscarf and wear loose clothing that covers the arms and legs.

  • Men wear trousers or shorts that reach below the knee and avoid sleeveless tops.

  • Bring your own scarf, so you don't need to rely on what may be offered at the entrance.

  • Photography is generally allowed in the gallery. Avoid flash and do not photograph people at prayer.

Restoration work in 2025–2026: what it means for your visit

Hagia Sophia is in the middle of the most extensive restoration in its modern history. In April 2025 officials described a new phase focused on protecting the domes from earthquakes, including reinforcing the main dome and half domes and replacing the worn lead coverings. By September 2026, the exterior of the main dome was fully covered, and a steel platform was being installed to strengthen the eastern semi-dome, which the project's scientific committee identifies as the building's most vulnerable section.

Officials say worship and visits continue during the work. Still, expect scaffolding outside and inside, and a main dome that is partly hidden from view. The mosaics in the upper gallery are the main reason to buy a ticket at the moment. If seeing the open dome is your priority, you may prefer to wait until the works finish. No firm completion date has been announced.

What to look for inside

From the visitor gallery, these are the highlights:

  • The Deësis mosaic in the south gallery shows Christ flanked by the Virgin Mary and John the Baptist. It is often considered the finest mosaic in the building.

  • The imperial portrait mosaics, including Empress Zoe and the Komnenos family panel, show Byzantine rulers making offerings to Christ and the Virgin.

  • The Gate of Heaven and Hell, a marble doorway in the gallery that you pass through on the visitor route.

  • Viking graffiti, runic letters scratched into a gallery balustrade, usually attributed to a Norse visitor.

  • The view down into the nave, with the Ottoman mihrab, minbar and calligraphic roundels that sum up the building's double history.

Allow around an hour to 90 minutes in the gallery, plus time for any queue. Queues tend to be longest from mid-morning onwards in peak season, so an early start usually pays off.

Visiting on your own or with a guide

You can visit independently with the audio system, which suits travellers who have read up on the building. A guide adds the most where there are no signs, such as identifying mosaic figures, explaining the 1453 conversion and pointing out details from the different periods.

If you would rather go with a guide, compare the Istanbul cultural and historical tours on TravelShop Booking and read what each one includes before booking. The Hagia Sophia walking tour is an English-language guided visit that meets at the mosque. Check its inclusions, especially transfers and the gallery ticket, and the current dates on the tour page. For more background on the site, see the Istanbul Hagia Sophia page.

Just outside the main building is the restored Ottoman madrasa. Our article on the Hagia Sophia Madrasa explains its history.

Frequently asked questions

How old is Hagia Sophia?

The current building was dedicated on 27 December 537, so it is nearly 1,500 years old. Two earlier churches stood on the same site before it.

What does "Hagia Sophia" mean?

It is Greek for "Holy Wisdom". The church was dedicated to the Wisdom of God. In Turkish the name is written Ayasofya.

How do you pronounce Hagia Sophia?

English speakers commonly say it as "HAH-yah so-FEE-ah". The Turkish form, Ayasofya, sounds roughly like "eye-ah-SOF-yah".

Is Hagia Sophia free to visit?

Not for foreign visitors. A separate ticketed route to the upper gallery has applied since January 2024. Worshippers attending prayers use their own entrance.

Can you still see the Christian mosaics?

Yes. The main Byzantine mosaics are in the upper gallery, which is the area foreign visitors are allowed into. Some imagery may be screened or hard to see during the restoration work.