Viajá con Gus
Home › Turkey › Hagia Sophia
Hagia Sophia
🇹🇷 Turkey · Istanbul and Marmara

Hagia Sophia

🪪 What do I need to enter Turkey?Pick your citizenship and we tell you the visa, the days and the paperwork, with the official source.

By leaving your email and citizenship you agree to receive the documents you asked for and weekly travel news. You can unsubscribe whenever you want. How we handle your data.
Jump to what you need
📌What it is and where it is
Hagia Sophia (Ayasofya in Turkish, officially 'Ayasofya-i Kebir Cami-i Şerifi', the Grand Imperial Mosque of Hagia Sophia) is the most important monument in Istanbul. It began as a 6th-century Christian basilica, which Mehmed the Conqueror turned into a mosque in 1453. Atatürk made it a museum in 1935, and in 2020 it became a working mosque again. It stands in the heart of Sultanahmet, in the Fatih district, right opposite the Blue Mosque. It is one of the monuments in the UNESCO World Heritage Site 'Historic Areas of Istanbul' (inscribed in 1985)
📌Current visiting arrangements (since 2024)
Since 15 January 2024 there have been two separate routes. Muslim worshippers enter free of charge through the prayer entrance on the ground floor. Tourists use a different entrance, under the second minaret (the one built by Bayezid II), which leads to the upper gallery, and they pay for a ticket. This is the 'Hagia Sophia Visitor Management Plan', announced by the Minister of Culture and Tourism Mehmet Nuri Ersoy in response to a UNESCO recommendation to keep tourist traffic apart from the prayer area
📌Tourist admission
€25 per person for the upper gallery route (verified 2026, in force since 15/1/2024). The Museum Pass Istanbul and the Turkish Müzekart are not valid. You can pay at the ticket office next to the Fountain of Ahmed III or through authorised agencies. The visit includes a QR audio guide and headphones in 23 languages
📌Best time to go
Go right at opening time or close to closing time to avoid the longest queues in Istanbul's old town. Tourist access stops during the five daily prayers, especially at midday on Friday, when the prayer draws large crowds. As with the rest of Sultanahmet, spring and autumn bring better weather and smaller crowds than summer
📌Getting there
It's right in the middle of Sultanahmet. Take tram line T1 to the Sultanahmet stop, and from there it's a few steps away. On foot it's easy to combine with the Blue Mosque (opposite), Topkapı Palace and the Basilica Cistern, which are all just a short walk away. From Istanbul Airport (IST) and Sabiha Gökçen (SAW), take the metro or a bus to the historic centre, then the T1 tram
📌Dress code
Neither ayasofyacamii.gov.tr nor ktb.gov.tr (Ministry of Culture and Tourism) publishes a detailed dress code for the tourist gallery route on its official pages. What we can confirm is that this is a working mosque. As in any Turkish mosque, you have to take off your shoes and dress modestly to enter the prayer floor, and headscarves and robes are usually lent at the worshippers' entrance. We found no official notice with the exact rule for the paid route, so we're not making one up. In practice, from our own visit in October 2023: they sell cover-ups at the entrance, women must wear one to get in, and it doesn't cost much.
💱 TRY exchange rate
Loading rate…
🌤️ Weather in Hagia Sophia
Loading weather…

Few buildings in the world carry as many layers of history as Hagia Sophia. The Byzantine emperor Justinian had it built in just five years, and it was consecrated in 537. For almost a thousand years it was the largest church in Christendom, with a dome that seemed to hang in mid-air and that changed religious architecture for good. After the Ottoman conquest of 1453 it became an imperial mosque and gained minarets, a mihrab and calligraphic roundels. In 1935 the secular Republic of Turkey turned it into a museum. It reopened for Muslim worship in 2020, and since 2024 tourists and worshippers have followed separate routes: one group prays on the ground floor while the other walks the upper gallery past thousand-year-old Byzantine mosaics.

That dual role, as an active place of worship and a monument visited by millions, is what makes going inside Hagia Sophia today so unusual. The same space holds the green prayer carpet, the huge Ottoman chandelier hanging beneath the dome, and roundels bearing the names of Allah and the Prophet Muhammad in seven-metre gold letters. On the walls and in the upper gallery are Byzantine mosaics of Christ, the Virgin and emperors that have survived centuries of earthquakes, looting and changes of regime. It is quite literally one empire layered on another: Byzantine, Ottoman and modern Turkish, each leaving its mark without fully erasing the one before.

This guide explains how to visit Hagia Sophia today: the separate entrance system in place since January 2024, how much it costs and what you can actually see from the gallery. Our history page then covers the building's full story, from the riot that destroyed the earlier basilica to the 2020 court ruling that returned it to worship. We give the exact dates there, without the date error that, ironically, appears on the monument's own official website.

✍️ I have been here

La tarde que entré a Santa Sofía

Entramos en una escala de una noche: lo que vimos adentro, la línea que separa la zona de culto de la de visita y lo que cambió en el régimen de entrada después de nuestro viaje.

Read my full story →
Gus, author of this guide. Told first-hand, with my own photos.

📖 History of Hagia Sophia

The building we see today is the third Hagia Sophia on the same site. The two earlier ones, built under Constantine and Theodosius II, were lost to fires and riots. Emperor Justinian had the current building raised between 532 and 537, after the Nika riots. It served as the cathedral of Constantinople and was the largest church in the Christian world for almost a thousand years. After the Ottoman conquest on 29 May 1453, Sultan Mehmed II turned it into a mosque, and later sultans added minarets, the mihrab, the minbar and the great calligraphic roundels. On 24 November 1934 Atatürk's government decreed its secularisation, and on 1 February 1935 it opened as a museum. Turkey's Council of State annulled that decree on 2 July 2020. Eight days later, on 10 July 2020, a presidential decree reopened Hagia Sophia for Muslim worship. Since 15 January 2024 a two-entrance system has also kept worshippers and tourists apart. The full story, with every date and its source, is on our history page.

Read the full history ↓

🗺️ What to see

Tours nearby, in Estambul

If you only have one day, take a guided tour on the first one: it sets up the rest of your trip and saves you a lot of walking. We look ours up on Civitatis: guided in Spanish and booked online with no fuss. They have over 30 activities in Estambul. And there are free tours here: you book without paying and tip the guide whatever you think at the end, so trying one costs you nothing. Three are below so you get the idea: tap any of them and they all open.

They depart from Estambul, 0 km away. If you book from this link we earn a commission and you pay no more.

1
Justinian's dome and central nave
The giant 6th-century Byzantine dome that revolutionised religious architecture and still crowns Hagia Sophia's vast nave today.
Leer más ↓
From day one, Hagia Sophia has been defined by its dome. It measures about 31 metres across and stands more than 55 metres high on four large piers, held up by a system of pendentives that was close to experimental in the 6th century. Forty windows around its base let in light that runs around the drum and makes the dome seem to float over the nave with no visible support. The architects, Anthemius of Tralles and Isidore of Miletus, were scientists more than traditional builders. In just five years (532-537) they solved a structural problem that no other basilica of their time had attempted at that scale. An earthquake in 558 brought down part of the original dome, and Isidore the Younger rebuilt it higher. Another section fell in 1346 and was later repaired. Even so, what you see today is still essentially the 6th-century Byzantine design. Walking through the central nave, which is huge and almost empty apart from the prayer carpet, still gives you the same sense of awe its builders were aiming for.
ℹ️ Distance: In the heart of Sultanahmet, opposite the Blue Mosque; T1 tram, Sultanahmet stop · Best time: Early morning or close to closing time; avoid Friday midday · Admission: Included in the general ticket for the tourist gallery, €25 (verified 2026) · Duration: You see it throughout the visit, which takes 45 min to 1 hour
2
The Byzantine mosaics
Golden images of Christ, the Virgin and Byzantine emperors that have survived a thousand years of history and are best seen today from the upper gallery.
Leer más ↓
Hagia Sophia holds some of the most important Byzantine mosaics in existence. They were made with glass tesserae and gold leaf between the 9th and 14th centuries, after the period of iconoclasm (when religious images were banned) had ended. The best known is the Deësis mosaic in the south gallery, showing Christ Pantocrator between the Virgin and John the Baptist. Its lifelike faces make it one of the high points of late Byzantine art. The gallery also has the panel of Empress Zoe and her husband offering bags of gold to Christ, and the one of John II Komnenos and Empress Irene beside the Virgin and Child. Above the Imperial Gate, which the emperors used to pass from the narthex into the nave, is a 9th- or 10th-century mosaic of an emperor (probably Leo VI) bowing before Christ enthroned. High up in the apse is the Virgin and Child from the mid-9th century, one of the first works made after iconoclasm. Many of these mosaics were plastered over during the centuries the building served as a mosque, and they were only rediscovered and restored in the 20th century. Since the 2020 reconversion, some panels near the prayer carpet are covered with cloth or dimmed with lighting at prayer times. The mosaics in the upper gallery, where the tourist route runs, stay visible.
ℹ️ Distance: Upper gallery (reached by the stairs/ramp in the south wing) and the apse, visible from the ground floor · Best time: Morning light; the gallery is usually quieter first thing · Admission: Included in the €25 ticket for the tourist gallery (verified 2026) · Duration: 20 to 30 minutes walking the gallery
3
The mihrab, the minbar and the great caliphal roundels
The Ottoman additions that turned the basilica into a mosque: the niche marking the direction of Mecca and the eight giant calligraphic roundels.
Leer más ↓
When Mehmed II turned Hagia Sophia into a mosque in 1453, the building had to face Mecca, which lies slightly off the axis of the original basilica. That's why the mihrab, the niche marking the qibla or direction of prayer, sits to the right of the Byzantine apse, and the whole prayer carpet follows that diagonal. Beside the mihrab is the minbar, the carved marble pulpit from which the Friday sermon is given, added in the 16th century. The most striking sight is the set of eight round Ottoman calligraphy panels hanging from the great piers. Each is about 7.5 metres across, among the largest in the Islamic world. In gold letters on a green background they carry the names of Allah, Muhammad, the first four caliphs (Abu Bakr, Umar, Uthman and Ali) and the Prophet's grandsons, Hasan and Husayn. The calligrapher Mustafa İzzet Efendi made them during the Fossati brothers' restoration in the 19th century. Along with the dome, they are the most reproduced image of the interior.
ℹ️ Distance: In the central nave, around the apse and the main piers · Best time: Any point during the ground-floor visit (also visible from the gallery) · Admission: Included in the visit; the prayer floor is free for worshippers · Duration: 10 to 15 minutes
5
The Weeping Column (Sütun-u Ağlayan)
The marble column with a bronze-lined hole where, according to popular tradition, a damp thumb and a full turn will grant you a wish.
Leer más ↓
In the north-west corner of the nave, near one of the side entrances, stands a bronze-clad column with a small hole at hand height. It's known as the 'Weeping Column', the 'Sweating Column' or the 'Wishing Column'. Popular legend has no proven historical basis, but guides and visitors have repeated it for generations. It says the moisture that sometimes seeps from the stone has healing powers, and that if you put your thumb in the hole and turn it a full 360 degrees without taking it out, you'll be granted a wish. Myth aside, the column is thought to date from Justinian's original construction. The moisture probably comes from natural condensation from an underground spring, or from the porous stone being in contact with the foundations. It's a regular stop on any ground-floor visit, with a small queue of people trying their luck with a thumb in the hole.
ℹ️ Distance: North-west corner of the nave, near a side door · Best time: Any point during the visit · Admission: No extra charge; visible from the prayer floor or from the gallery · Duration: 5 minutes
6
The sultans' tombs (türbes) and the outer courtyard
The Ottoman mausoleums, the ablution fountain and the buttresses that surround the building outside, in the landscaped courtyard.
Leer más ↓
On the south side of Hagia Sophia is a small group of Ottoman türbes (mausoleums) where several sultans and dozens of princes are buried. They include Selim II (the first, designed by the architect Mimar Sinan), Murad III and Mehmed III. The tombs are domed buildings with İznik tiles inside. When they're open, you visit them separately from the gallery route, since they're run by the authority in charge of Ottoman monuments rather than as part of the mosque's tourist route. Among the gardens of the outer courtyard is the Fountain of Ahmed III (1728), a small gem of Ottoman Baroque with deep overhanging eaves, which now serves as the landmark for the tourist ticket office. Along the outer walls you can also see the large buttresses the Ottomans added to reinforce the Byzantine structure. There are four minarets, built at different times after the conquest: two older ones with a square base and two cylindrical ones from the time of Selim II. Walking around the outside before or after you go in helps you grasp the building's real scale.
ℹ️ Distance: Outer perimeter and south courtyard of the complex · Best time: Any time; good afternoon light for photos of the exterior · Admission: The courtyard and exterior are free; the türbes may have their own opening hours · Duration: 15 to 20 minutes
7
How visits work: worship and tourism kept apart
How entry to Hagia Sophia actually works today: two doors, two routes and a system designed to keep prayer and tourism apart.
Leer más ↓
Since 15 January 2024, a 'visitor management' system at Hagia Sophia has physically separated people coming to pray from people coming to sightsee. Worshippers enter free through the prayer entrance on the ground floor, without going through tourist ticket checks. Non-Muslim visitors use a separate door beneath the minaret of Bayezid II and pay €25 per person. They're sent straight up to the upper gallery and leave by another ramp without crossing the prayer area. Turkey's Minister of Culture and Tourism, Mehmet Nuri Ersoy, announced the plan in response to a UNESCO recommendation to manage visitor flows at a site that is both an active place of worship and World Heritage. The measure was also meant to end the very long queues that formed when everyone, worshippers and tourists alike, used the same entrance. The Museum Pass Istanbul and the Turkish Müzekart aren't valid for this route. You have to buy the specific Hagia Sophia ticket, either at the ticket office next to the Fountain of Ahmed III or in advance.
ℹ️ Distance: Prayer entrance on the ground floor; tourist entrance beneath the minaret of Bayezid II (south side) · Best time: Outside the five daily prayer times, especially Friday midday · Admission: Tourists: €25 (since 15/1/2024). Worshippers: free. Not included in the Museum Pass (verified 2026) · Duration: Getting in usually takes an extra 10 to 20 minutes, depending on the queue
📶I have never landed without internet. I arrive and my phone connects to the strongest network in the country I am visiting: I can say I landed, sort out transport, book tours and keep posting, at a seriously good price. I always use the Maya eSIM — check their plans by clicking the banner.See plans →Maya Mobile eSIM — turn travel mode on
What nobody tells you

💵 Prices

Tickets

TypePrice
Santa Sofía, circuito turístico (galería superior), adulto€25 per person, in force since 15 January 2024. Not included in the Museum Pass Istanbul and not valid with the Müzekart (2026)
Santa Sofía, acceso de culto (planta baja, fieles)Free, through the prayer entrance, every day subject to capacity limits (2026)
Menores turistasTour operators report free entry for children under 8. We found no official notice publishing that specific age limit, so check at the ticket office (2026)
🔄 updated monthlyOfficial / reference values · double-check when buying

Activities and tours

ActivityPriceDurationOperator
Self-guided visit of the tourist gallery with QR audio guideIncluded in the €25 ticket, 202630 to 45 minHagia Sophia administration (General Directorate of Foundations)
Walking tour of Sultanahmet including Hagia Sophia, the Blue Mosque and the HippodromeFrom ~€20-40 per person (tickets extra), 20262 to 3 hLocal guides and agencies (check)
Hagia Sophia + Topkapı Palace + Basilica Cistern in one dayTotal of the individual tickets, approx. ~€118 in 2026 (€25 + €55 + €38)Half a day to a full dayOn your own or with a guide
Hagia Sophia History and Experience Museum (themed museum nearby)Separate paid ticket; check current price, 20261 hMinistry of Culture and Tourism / goturkiye.com
🔄 updated monthlyOfficial / reference values · double-check when buying

🚌 How to get there and distances

Getting around

T1 tram (Sultanahmet stop)
PriceWith an Istanbulkart, ~35-42 ₺ per ride, 2026
DurationVaries with starting point
Notes
The most direct way to get there: Hagia Sophia is a short walk from the stop, across Sultanahmet Square
On foot from elsewhere in Sultanahmet
Free
Duration5 to 15 minutes
Notes
The Blue Mosque, Topkapı Palace, the Basilica Cistern and the Hippodrome are all within easy walking distance
Istanbulkart (to get there by public transport)
Card ~165 ₺ + credit, 2026
Notes
Works on trams, metro, Marmaray and buses across the city; you buy and top it up at the machines in the stations
Taxi or apps (BiTaksi, Uber)
Flag fall + per km, varies, 2026
DurationVaries with traffic
Notes
Traffic and Sultanahmet's pedestrian streets mean walking or taking the tram is usually faster
🔄 updated monthlyOfficial / reference values · double-check when buying

How to get there

RouteAirlines / operatorsAvg. priceDuration
Istanbul Airport (IST) → SultanahmetM11 metro + transfer, HAVAIST buses, taxiMetro/bus cheap; taxi considerably more expensive, 2026Approx. 1 to 1,5 h
Sabiha Gökçen Airport (SAW) → SultanahmetHAVABUS buses, M4 metro + Marmaray, taxiBus/metro cheap; taxi expensive because of the distance, 2026Approx. 1,5 to 2 h
From anywhere in Istanbul → Sultanahmet (Hagia Sophia)T1 tram, Marmaray + tram, ferry + tram depending on where you startIstanbulkart fare, ~35-42 ₺, 2026Varies depending on the neighbourhood you start from
🔄 updated monthlyOfficial / reference values · double-check when buying

🏨 Where to stay

No exact prices: a scale from $ (budget) to $$$$$ (luxury), with 2-3 options per category.

Luxury (with views of Hagia Sophia)
Price$$$$$
Recommended options
From ~150-450 €/night, 2026. Boutique hotels in historic Sultanahmet buildings, several with a terrace or rooms looking straight out at the dome and minarets
Mid-range (boutique in Sultanahmet)
Price$$$$$
Recommended options
~60-130 €/night, 2026. The most convenient area for walking to every monument in the old town, with a wide choice of 3-4 star hotels
Budget (guesthouses near Sirkeci)
Price$$$$$
Recommended options
~30-60 €/night, 2026. Family-run places a 10-15 minute walk from Hagia Sophia, with good value for money
Backpacker (Sultanahmet hostels)
Price$$$$$
Recommended options
Dorm bed from ~12-25 €, 2026. Several have a terrace bar overlooking the minarets of Hagia Sophia and the Blue Mosque

🍴 Where to eat

Comida callejera junto a Sultanahmet
Price$$$$$
Options / signature dish
~50-200 ₺ (≈ 1-4 €), 2026. Simit, roasted chestnuts, döner and pomegranate juice from the stalls on the square and nearby streets
Restaurantes turísticos con vista a Santa Sofía
Price$$$$$
Options / signature dish
~400-900 ₺ per person (≈ 8-18 €), 2026. Terraces and rooftops in Sultanahmet looking straight at the monument; worth comparing prices, as the area is very touristy
Cocina otomana y kebab en Sultanahmet
Price$$$$$
Options / signature dish
~250-600 ₺ per dish (≈ 5-12 €), 2026. Kebab houses and Ottoman cuisine restaurants a few blocks from the monument
Alta cocina con vistas
Price$$$$$
Options / signature dish
From ~800-2.000 ₺ (≈ 15-40 €) or more, 2026. Modern Turkish restaurants on the rooftops of Sultanahmet boutique hotels, with Hagia Sophia and the Blue Mosque as a backdrop

📖 History of Hagia Sophia

Origins, formation and what the sources say.

The two earlier Hagia Sophias and the Nika riots

Strictly speaking, the building we know today as Hagia Sophia is the third one built on the same site. The first 'Great Church' was commissioned by Constantine I, the emperor who made Constantinople the capital and Christianity the official religion. It was a basilica with a timber roof, and it was inaugurated in 360 under his son Constantius II. It burned to the ground in 404, during the unrest that followed the exile of the patriarch John Chrysostom.

A second basilica, also built of timber and also dedicated to 'Holy Wisdom' (that's what 'Hagia Sophia' means in Greek; it isn't the name of a female saint), was built by Theodosius II and inaugurated in 415. That second Hagia Sophia didn't survive either. It went up in flames in January 532, during the most violent episode of early Byzantine history, the Nika riots.

The Nika riots broke out in the Hippodrome of Constantinople. The two rival chariot-racing factions, the 'Blues' and the 'Greens', also stood for opposing political and social interests, but for once they joined forces against Emperor Justinian. They demanded the dismissal of his most unpopular officials and went as far as proclaiming a rival emperor. Over several days of rioting, much of central Constantinople was reduced to ashes, including the second Hagia Sophia. Justinian came close to fleeing the city, but the final crackdown, which left thousands of rioters dead in the Hippodrome, let him keep his throne. Paradoxically, it was this same uprising that cleared the ground, literally and politically, for the project Justinian had in mind: a Hagia Sophia far larger and more ambitious than the two before it.

Justinian's great basilica (532-537)

The fire from the Nika riots had barely gone out when Justinian commissioned a third Hagia Sophia, unlike anything that had been built before. He put two men in charge of the project who weren't architects in the traditional sense but scientists: Anthemius of Tralles, a mathematician and expert in geometry and optics, and Isidore of Miletus, an engineer who specialised in physics applied to construction. The choice was no accident. The central challenge of the project was to roof a colossal space with a dome that seemed to float, and that was above all a problem of structural calculation.

Work began on 23 February 532 and was finished in an astonishingly short time for a building of its scale: five years and ten months, with the final consecration on 27 December 537. More than ten thousand workers are said to have worked on it at the same time, using materials brought from all over the Mediterranean. These included marble from Egypt and Anatolia and columns reused from older pagan temples (according to tradition, some came from the Temple of Artemis at Ephesus). The result was the largest enclosed building in the Christian world for almost a thousand years. It has a basilica-plan nave crowned by a central dome resting on pendentives. This solution solved, for the first time at that scale, the problem of placing a circular dome over a square plan.

Legend has it that when the work was finished, Justinian exclaimed 'Solomon, I have surpassed thee', a reference to the Temple in Jerusalem. The line is probably apocryphal, but it captures the real ambition of the project well. Hagia Sophia wasn't just a church. It was a statement of power by an emperor who ruled the eastern Mediterranean and hoped to win back the western half.

Almost a thousand years of Byzantine history: crusaders, earthquakes and decline

For almost a millennium, Hagia Sophia was the cathedral of Constantinople, the seat of the Ecumenical Patriarch and the setting for imperial coronations. But its Byzantine history was far from peaceful. The original dome was flatter than the current one. Earthquakes in 553 and 557 partly brought it down, and it collapsed again in 558. Isidore the Younger, nephew of one of the original architects, rebuilt it a few metres higher and with a different curvature, and that is essentially the dome that survives today. Another section of the dome and the eastern arch collapsed in 1346, after years of cracking, and had to be repaired once more.

The most traumatic blow, however, came not from nature but from fellow Christians. In 1204, during the Fourth Crusade, the Latin crusaders diverted their expedition, which in theory was bound for the Holy Land, and sacked Constantinople. Hagia Sophia was stripped of much of its treasure and many of its relics. During the Latin occupation that followed, until 1261, it served as a Catholic cathedral rather than an Orthodox one. The city regained its independence in 1261, but the Byzantine Empire never fully recovered from that blow. It entered a long, slow decline that would last two more centuries.

By the 15th century, the Byzantine Empire had shrunk to little more than Constantinople itself. Hagia Sophia had been damaged, patched up several times and had lost the wealth of its best days. Even so, it was still the most important religious symbol of the Orthodox world, and the symbolic prize that any conqueror of the city coveted.

1453: the Ottoman conquest and the conversion into a mosque

On 29 May 1453, after weeks of siege, the troops of Sultan Mehmed II entered Constantinople and ended more than a thousand years of the Byzantine Empire. Ottoman accounts are quoted today even on the monument's official website. According to them, Mehmed himself, later known as 'Fatih' ('the Conqueror'), rode straight to Hagia Sophia as soon as he had taken the city. He found the basilica full of townspeople who had taken refuge there, fearing for their fate, and he guaranteed their lives and their freedom. He then ordered that the building be turned into a mosque, and he is said to have taken part in the first Muslim prayer held inside.

The conversion didn't mean destroying the building. Quite the opposite: from the very start, the Ottoman sultans saw it as a major symbol of the conquest and looked after it carefully. Mehmed II ordered the first minaret to be added, made of wood. He also entrusted the building's upkeep to a religious foundation (waqf) set up for the purpose, whose founding charter dates from 1462. Centuries later, that document became the legal basis used in the Turkish courts of the 21st century to argue that the building had to remain a mosque in perpetuity.

Over the following centuries, successive sultans added new elements: a second, brick minaret under Bayezid II, a mihrab and a minbar. Above all, there was the work of the great imperial architect Mimar Sinan. In the 16th century, under Selim II, he reinforced the structure with buttresses and built the first sultans' mausoleums (türbes) next to the building. His work ensured that Hagia Sophia, so often damaged in Byzantine times, would not suffer another major collapse despite Istanbul's frequent earthquakes.

From mosque to museum: the 1934 decree

After the First World War and the Ottoman defeat, Mustafa Kemal Atatürk founded the Republic of Turkey in 1923 and launched a radical, secularist reform of the new state. He abolished the sultanate and the caliphate, separated religion from government affairs and generally sought to reduce the symbolic weight of the Ottoman imperial past in public life. In that context, on 24 November 1934 the Turkish Council of Ministers issued a cabinet decree that ended Hagia Sophia's role as a working mosque. The decree turned it into a museum, open to all visitors regardless of religion.

The museum opened to the public on 1 February 1935, after several years of restoration work. Part of that work was the partial removal of the plaster that, during the Ottoman period, had covered many of the Byzantine mosaics with figurative religious scenes, which are forbidden in Islam. Recovering the mosaics, a job carried out by the Byzantine Institute of America among others, was one of the great contributions of the museum era. Thanks to it, works such as the Deësis mosaic and the mosaic of John II Komnenos and Irene could be seen again after centuries.

For 86 years, Hagia Sophia operated as a state museum, run first by the Ministry of Education and later by the Ministry of Culture and Tourism. It became one of the most visited sites in Turkey, with millions of tourists a year. The same period also saw the 'Historic Areas of Istanbul', which include Hagia Sophia, inscribed on the UNESCO World Heritage List in 1985.

The return to worship in 2020 and today's visiting rules

On 2 July 2020, the Tenth Chamber of the Turkish Council of State, the country's highest administrative court, ruled unanimously that the 1934 cabinet decree was unlawful. The court found that it contradicted the 1462 founding charter of Mehmed the Conqueror's foundation, which established the building's use as a mosque in perpetuity. Eight days later, on 10 July 2020, President Recep Tayyip Erdoğan signed presidential decree no. 2729. The decree transferred the administration of Hagia Sophia to the Presidency of Religious Affairs (Diyanet) and reopened the building for Muslim worship. The first Friday prayer was held on 24 July 2020, with huge crowds and a live broadcast. The decision drew international criticism, including from UNESCO, which regretted not having been consulted beforehand despite the site's World Heritage status.

Here's a little-known detail worth pointing out. The monument's own official website, ayasofyacamii.gov.tr, gets the dates wrong on its history page. It states that 'the Council of State reversed the cabinet decree on 10 July 2020', mixing up the date of the court ruling with the date of the presidential decree that put it into effect. The same page exposes the contradiction. A few paragraphs further down, it reproduces presidential decree no. 2729 in full, and that text is accurate. It cites the ruling of the Tenth Chamber of the Council of State 'dated 2/7/2020' (Turkish day/month/year format), case no. E:2016/16015 and decision no. K:2020/2595, as the precedent that allowed the decree to be issued eight days later. In other words, the court ruling came on 2 July, and the presidential decree that reopened Hagia Sophia for worship came on 10 July. The official website's own narrative confuses the two dates, although the legal document it quotes sets the record straight.

After the 2020 reopening, Hagia Sophia operated for a few years with fairly open access for both worshippers and tourists. Then the authorities realised that the mixed flow was causing very long queues and friction between the two uses. Culture and Tourism Minister Mehmet Nuri Ersoy announced a solution in late October 2023, in response to a UNESCO recommendation, and it came into force on 15 January 2024. Since then, worshippers enter free of charge through the ground-floor prayer entrance. Tourists use a separate entrance under the minaret of Bayezid II and pay €25 per person to visit only the upper gallery. They leave by a different ramp and never cross the prayer area. This is the system in place today, and in practice it defines how Hagia Sophia is visited in the 21st century: a building that is still both an active mosque and one of the most visited monuments on the planet.

📚 Bibliography

  • Wikipedia (EN) — «Hagia Sophia» — https://en.wikipedia.org/wiki/Hagia_Sophia
  • Hagia Sophia Mosque (official site) — «History of Hagia Sophia» — https://ayasofyacamii.gov.tr/en/ayasofya-tarihi
  • Hagia Sophia Mosque (official site) — «Hagia Sophia Manifesto» — https://www.ayasofyacamii.gov.tr/en/ayasofya-manifestosu
  • Hagia Sophia Mosque (official site) — «Legal Status of Hagia Sophia» — https://ayasofyacamii.gov.tr/en/ayasofyanin-statusu
  • UNESCO — «Historic Areas of Istanbul» — https://whc.unesco.org/en/list/356/
  • Wikipedia (EN) — «Nika riots» — https://en.wikipedia.org/wiki/Nika_riots
  • Wikipedia (EN) — «Fall of Constantinople» — https://en.wikipedia.org/wiki/Fall_of_Constantinople
  • Wikipedia (EN) — «Mustafa Kemal Atatürk» — https://en.wikipedia.org/wiki/Mustafa_Kemal_Atat%C3%BCrk
  • The Washington Post — «Turkey's president formally makes Hagia Sophia a mosque» — https://www.washingtonpost.com/national/religion/turkish-court-rules-to-let-hagia-sophia-return-as-mosque/2020/07/10/1a9750a8-c2b0-11ea-8908-68a2b9eae9e0_story.html
  • T.C. Kültür ve Turizm Bakanlığı (Ministry of Culture and Tourism) — official Ayasofya page — https://www.ktb.gov.tr/TR-103582/ayasofya.html

❓ Frequently asked questions

Is Hagia Sophia a mosque or a museum today?+
It has been a working mosque since July 2020, when a presidential decree reopened it for Muslim worship after 86 years as a museum. It still welcomes millions of tourists a year, but since 15 January 2024 they follow a route kept separate from the prayer area: the ground floor is for worship and the upper gallery is the paid tourist visit area.
How much does it cost to get into Hagia Sophia and what does the ticket include?+
The tourist ticket costs 25 € per person (in force since 15 January 2024) and gives access to the upper gallery route, with a QR audio guide in 23 languages. The Museum Pass Istanbul and the Turkish Müzekart are not valid: you need to buy the specific Hagia Sophia ticket. Worshippers who come to pray enter free through the prayer entrance on the ground floor.
Is there a dress code to get in?+
The monument's official website (ayasofyacamii.gov.tr) and the Ministry of Culture and Tourism's (ktb.gov.tr) don't publish detailed dress rules for the tourist route. What is certain is that it's an active mosque: in the prayer area you must take your shoes off and dress modestly, as in any mosque in Istanbul. To avoid surprises, go with your shoulders and knees covered.
What happened to Hagia Sophia in 2020?+
On 2 July 2020, Turkey's Council of State (the highest administrative court) unanimously annulled the 1934 cabinet decree that had turned Hagia Sophia into a museum. Eight days later, on 10 July 2020, President Recep Tayyip Erdoğan signed presidential decree no. 2729, which handed management of the building back to the Presidency of Religious Affairs and reopened Hagia Sophia for worship, with the first Friday prayer held on 24 July 2020. Watch out for one detail: the official site ayasofyacamii.gov.tr itself says in its history text that 'the Council of State annulled the decree on 10 July 2020', mixing up the date of the ruling with that of the presidential decree. The text of presidential decree no. 2729, quoted on that same page, makes clear that the court ruling is dated 2 July 2020 (case E:2016/16015, K:2020/2595); 10 July is the date of Erdoğan's decree, not of the ruling.
Is Hagia Sophia included in the Museum Pass Istanbul?+
No. The Museum Pass Istanbul covers Topkapı Palace, the Archaeological Museums, the Chora mosque-museum and other state sites, but Hagia Sophia has been left out since it came under the Presidency of Religious Affairs and the General Directorate of Foundations in 2020. You have to buy the 25 € ticket specifically for the gallery route.
When can't you visit Hagia Sophia as a tourist?+
The tourist route is restricted during the five daily prayer times, and especially during Friday midday prayer, when the most worshippers attend. Outside those times, the gallery route runs normally. It's worth arriving early, because in high season the queues at the ticket office by the Fountain of Ahmed III can be long.

More places in Turkey

TroyaAnkaraAntalyaBodrumCapadociaÉfeso
See every place in Turkey →The history of Turkey →
Sources consulted (13)
Still planning?
Explore more destinations in Turkey
See all destinations →