Hagia Sophia From Church to Mosque

Hagia Sophia changed from church to mosque in a single afternoon and then over four centuries. On 29 May 1453 Mehmed II rode into conquered Constantinople, went to the great church and ordered it converted; a scholar climbed the ambo and recited the shahada. Everything else - minarets, mihrab, tombs, schools, fountains and the great calligraphic discs - was added by later sultans. This article follows those additions and the two reversals of the 20th and 21st centuries.

Mihrab and calligraphy medallion in Hagia Sophia

The first days of the Hagia Sophia mosque

Mehmed is said to have struck a soldier he found prying up a slab of the Proconnesian marble floor, declaring the building his. Western travellers before 1453, such as the Spaniard Pero Tafur and the Florentine Cristoforo Buondelmonti, had described it as run-down, with doors off their hinges, and the sultan ordered repairs. On 1 June 1453 he attended the first Friday prayer in Aya Sofya, which became the first imperial mosque of Istanbul.

The mosque was endowed as a foundation, a waqf, whose income paid for its upkeep. From 1478 the revenues of 2,360 shops, 1,300 houses, four caravanserais and thirty boza shops went to it; charters of 1520 and 1547 added parts of the Grand Bazaar. Most houses in the city and the land of the future Topkapı Palace were endowed to it as well.

The four minarets of Hagia Sophia

  • South-east: red brick, from the reign of Mehmed II or Bayezid II; the oldest that stands. A first wooden minaret on a semi-dome has disappeared.
  • North-east: the slender stone minaret built by Bayezid II (1481-1512), now under restoration scaffolding next to the visitor gate.
  • West, two: thick and identical, built by Mimar Sinan for Selim II, each about 60 metres tall.

An earthquake in 1509 brought down one of the early minarets, and the four were made a matching height only in the Fossati restoration of the 1840s. Their mismatched styles record a century of building.

Hagia Sophia exterior with minarets and buttresses

The marble floor of Hagia Sophia disappears

In 1498 the Italian Bernardo Bonsignori became the last Western visitor to report seeing Justinian's marble floor. Soon afterwards it was covered with carpets and stayed hidden until the 19th century. Writers had compared that floor to a sea: grey-veined Proconnesian marble crossed by bands of green Thessalian stone that Byzantine poets likened to rivers, and Ottoman authors after the conquest described it as a stormy or petrified sea. The carpets would come off again only in the museum years, and in July 2020 the floor disappeared once more under the mosque's turquoise carpet.

  • 1498: last Western report of the bare floor.
  • 16th to 19th century: under carpets.
  • 1935 to 2020: exposed in the museum.
  • 22 July 2020: turquoise carpet laid.

Sinan and the Ottoman complex around Hagia Sophia

Under Selim II the building showed signs of strain, and Sinan, both architect and earthquake engineer, braced it with buttresses and built the two western minarets. He also designed Selim's tomb south-east of the mosque, completed in 1576-77; a gold crescent was set on top of the dome, and a clear zone of 35 arşın, about 24 metres, was cut around the building by demolishing the houses inside it.

Suleiman the Magnificent had already brought back two giant candlesticks from his Hungarian campaign to stand beside the mihrab. Murad III added two Hellenistic alabaster urns from Pergamon in the prayer hall, carved from single blocks and able to hold around 1,250 litres, from which sherbet was served on holy nights.

Sultans buried at Hagia Sophia

TombBuiltWho lies there
Selim II1576-77, SinanSelim II and 43 princes
Murad III1594, Davud AğaMurad III and his mother Safiye Sultan
Mehmed III1608, Dalgıç Mehmed AğaMehmed III and his mother
Mustafa IFormer baptisteryMustafa I, and later Ibrahim

The tombs stand in the garden on the south side and can be seen from outside without a ticket.

Hagia Sophia becomes a külliye

In 1739 Mahmud I ordered a restoration and turned the mosque into a full social complex. He added a medrese, a soup kitchen for the poor and a library, and in 1740 the şadırvan, the domed fountain for ritual washing that still stands in the courtyard. A new sultan's loge and a new mihrab were fitted inside. The Fossati restoration of 1847 to 1849 then hung eight great medallions by Kazasker Mustafa İzzet Efendi bearing the names of Allah, Muhammad, the first four caliphs, Hasan and Husayn, built a new imperial loge in 1850 and a timekeeper's house, the Muvakkithane. The mosque reopened with a ceremony on 13 July 1849.

💡 Pro Tip
Find the şadırvan
After leaving the gallery by the north-east ramp, look for the 1740 ablution fountain in the courtyard. Its carved roof and bronze grilles are among the best Ottoman details on the site.
Alesia Vakula
Pro tip by: Alesia Vakula
Travel expert and itinerary planning specialist

Hagia Sophia in the occupation years, 1918 to 1923

After the Ottoman defeat in the First World War, British, French, Italian and Greek forces occupied Constantinople. On 19 January 1919 a Greek military chaplain, Eleftherios Noufrakis, celebrated an Orthodox liturgy inside the mosque, the only one since 1453. From March to May 1919 the Sultanahmet demonstrations against the occupation gathered in the square next to the building. In Greece, a 500-drachma banknote issued in 1923 carried its image.

  • 1918-1923: Allied occupation of the city.
  • 19 January 1919: the only Orthodox liturgy since 1453.
  • March to May 1919: Sultanahmet demonstrations.
  • 1923: Hagia Sophia on a Greek banknote.

What the Ottomans kept inside Hagia Sophia

The conversion added and covered, but it rarely destroyed. Justinian's columns, capitals and marble panels stayed where they were. The mosaics were plastered or painted over in stages rather than chipped away, which is why the Deesis and the imperial panels could be uncovered in the 20th century. The Byzantine doors, including the Imperial Door and the bronze Beautiful Door from Tarsus, remained in use. Even the orientation stayed: the mihrab was simply set into the old apse, a little off its axis, to face Mecca.

  • Kept: columns, marble, doors, the Byzantine structure.
  • Covered: figurative mosaics, the floor.
  • Added: minarets, mihrab, minbar, loges, medallions, tombs, school, kitchen, fountain.

Reactions to the reconversion of Hagia Sophia

The 2020 decision drew strong reactions at home and abroad. Before the ruling, the president of the International Association of Byzantine Studies, John Haldon, wrote an open letter asking that the building stay a museum, and UNESCO noted that a change in status required its World Heritage Committee to be informed. A presidential spokesman said the mosque would remain open to visitors of every faith, like the great churches of Paris, and that its Christian images would be protected. Istanbul's mayor said he supported the change as long as it benefited Turkey.

  • Before the ruling: academic appeals to keep the museum.
  • Government position: open to all, Christian images protected.
  • Since 2024: paid gallery route for foreign visitors.

From museum back to mosque: 1934 to 2020

A cabinet decree of 24 November 1934 made the mosque a museum, which opened the following year. In 1991 a pavilion of the complex was allowed as a prayer room, the call to prayer sounded from two minarets from 2013, prayers were held inside on 1 July 2016 for the first time in 85 years, and an imam was appointed that October. On 10 July 2020 the Council of State annulled the 1934 decree, ruling that the building was the property of the Fatih Sultan Mehmet Han Foundation and could be used only as a mosque.

On 22 July a turquoise carpet was laid over the marble floor, and on 24 July 2020, the 97th anniversary of the Treaty of Lausanne, the first Friday prayer took place. The apse mosaic of the Virgin and Child was covered with white drapes. The mosque's name became Ayasofya-i Kebir Cami-i Şerifi; since 2024 sightseers use the upper gallery while the ground floor is reserved for prayer.

Last updated: October 13, 2026

Hagia Sophia from church to mosque: questions

When did Hagia Sophia become a mosque?
In 1453, after the Ottoman conquest; the first Friday prayer was held on 1 June 1453.
Were the mosaics destroyed in 1453?
No. They were covered gradually, and most figurative panels survived under plaster.
Who owns Hagia Sophia now?
The 2020 ruling names the Fatih Sultan Mehmet Han Foundation; it is administered as a mosque.
Who designed the calligraphy medallions?
Kazasker Mustafa İzzet Efendi, during the Fossati restoration of 1847 to 1849.
Where do the giant candlesticks come from?
Suleiman the Magnificent brought them back from his campaign in Hungary and placed them beside the mihrab.
What were the Pergamon urns used for?
They held sherbet that was served to the congregation on holy nights; each can hold about 1,250 litres.
When did the Fossati restoration end?
The mosque reopened with a ceremony on 13 July 1849.
What did Mahmud I add?
A medrese, a soup kitchen, a library and, in 1740, the şadırvan ablution fountain, turning the mosque into a külliye.
How many sultans are buried at Hagia Sophia?
Five: Selim II, Murad III, Mehmed III, Mustafa I and Ibrahim, in tombs in the south garden.
Which sultan built the oldest minaret?
The red-brick south-east minaret dates from Mehmed II or his son Bayezid II; a wooden one built earlier has gone.
Why is the mihrab off-centre?
The church faces east; the mihrab had to face Mecca, so it sits slightly off the axis of the apse.
When was the first Friday prayer after 2020?
On 24 July 2020, two weeks after the court ruling.
BOOK TICKETS