Hagia-Sofia.org
Hagia Sophia at blue hour

Your independent Hagia Sophia guide

History of Hagia Sophia

A plain timeline of the Hagia Sophia: three churches, the building of 537, the Ottoman mosque, the museum from 1935 and the mosque again since 2020.

  • ★ Hand-picked, top-rated tours
  • 🕌 Tickets, prayer times and dress code explained
  • ↺ Free cancellation on most bookings

The Hagia Sophia in one paragraph

The name Hagia Sophia means Holy Wisdom. It does not refer to a saint called Sophia. Churches stood on this site in 360 and 415, and the present building, begun in 532 and consecrated in 537, is the third great church here. It served as a church, became a mosque after the conquest of Constantinople in 1453, worked as a museum from 1935 and has been a mosque again since 2020.

The Hagia Sophia is part of the Historic Areas of Istanbul, which were inscribed as a UNESCO World Heritage Site in 1985. The listing covers several areas of the old city and not this building alone. This guide is independent and describes the history in neutral terms.

360, 415Earlier churches on the site
537Consecration of the present building
1453Conversion to a mosque after the conquest
Mosaic of Emperor Justinian offering Hagia Sophia

Timeline

The main dates, in order.

DateEvent
360First church on the site
415Second church on the site
532–537Justinian's building, the third great church, begun in 532 and consecrated in 537
558Part of the dome collapses after earthquake damage; rebuilt, reopened in 562
1204–1261Crusader and Latin rule interrupts Byzantine use
1453Conversion to a mosque after the conquest of Constantinople under Mehmed II
1934–1935Decision to use the building as a museum in 1934; museum operation from 1935
July 2020Legal and administrative change; the museum phase ends
24 July 2020First Friday prayer

Tours that cover the history

Guided walks and tickets for the Hagia Sophia and the old city, with live prices and availability. Check what each offer includes before you book.

Browse all tours on GetYourGuide →

The phases of the building

Each period left marks you can still see.

Church, from 537

Justinian ordered the present building. Construction took from 532 to 537, and the architects were Isidore of Miletus and Anthemius of Tralles. After the dome collapsed in 558, it was rebuilt and the church reopened in 562.

The architecture →

The interruption of 1204 to 1261

Do not describe the Byzantine years as one unbroken stretch. The Crusade and the Latin rule from 1204 to 1261 interrupted the Byzantine use of the church. The Deësis mosaic in the gallery is usually dated to about 1261.

Mosque, from 1453

After the conquest of Constantinople in 1453, Mehmed II converted the church into a mosque. Fittings such as the mihrab and minbar come from this period, and Sinan carried out strengthening work.

Museum, 1935 to 2020

The decision to use the building as a museum came in 1934, and the museum phase began in 1935. It ended in 2020. The 19th-century restoration by the Fossati brothers falls in the Ottoman years before this phase.

The separate museum nearby →

Mosque again, from 2020

A presidential decision in July 2020 transferred the administration to the Presidency of Religious Affairs (Diyanet) and ordered opening for worship. The first Friday prayer followed on 24 July 2020. These are two separate events.

Visiting the mosque →

What you can still see of each period

The building holds layers from every phase.

PeriodWhat remains
Justinian's churchThe main building, marble cladding, the plan of the dome and half-domes
Byzantine decorationFigural mosaics in the galleries and the narthex, from the 11th to the 13th century
Ottoman additionsMihrab and minbar, and strengthening works
TodayA mosque with a separate visitor route; restoration of the dome continues

Two simple claims are wrong: that all the mosaics were destroyed, and that the building has stood unchanged since 537. What the visitor route shows is a building that was changed many times.

On the inside page you find where the surviving mosaics are and how restoration affects the view.

Hagia Sophia history: frequently asked questions

When was the Hagia Sophia built?

The present building was begun in 532 and consecrated in 537 under the emperor Justinian. It is the third great church on the site, after churches of 360 and 415.

What does Hagia Sophia mean?

Holy Wisdom. The name does not refer to a person called Saint Sophia.

When did it become a mosque?

After the conquest of Constantinople in 1453 by Mehmed II.

When was it a museum?

The decision came in 1934, museum operation began in 1935 and the museum phase ended in 2020.

When did it become a mosque again?

The legal and administrative change took place in July 2020, and the first Friday prayer was held on 24 July 2020.

Was it in continuous Byzantine use before 1453?

No. The Crusade and the Latin rule from 1204 to 1261 interrupted the Byzantine use of the church.

Hagia Sophia and the Old City

Hagia Sophia visits, Old City walking tours and Bosphorus cruises compared, most with free cancellation.

Find your Hagia Sophia tour →