Justinian's sixth-century cathedral of Constantinople, for centuries the largest church in the world, later the city's principal mosque, then a museum, and a mosque again since 2020.
Audio guide
Tickets and tours
from partnersTrip to Istanbul
Add Hagia Sophia to your Istanbul trip, and the app will plan a walking route for each day.
- Set your travel dates
- Pick what you want to see
- Follow a ready-made route
On walking routes
History
4 min readOn 13 and 14 January 532, a fire started during the Nika Revolt, the riot that broke out in the nearby Hippodrome, and the cathedral of Constantinople burned to the ground. Only a few weeks later, on 23 February, Emperor Justinian began building its replacement. That is the Hagia Sophia that stands today. When it was completed in 537, it had the largest interior space in the world, and it remained the world's largest church for more than five hundred years, until the abbey church at Cluny was finished in the twelfth century.
It was the third church on the site. The first was simply called the Great Church, because of its size. It had a timber roof and was consecrated on 15 February 360, under Emperor Constantius II. In 404 the patriarch John Chrysostom clashed with Empress Aelia Eudoxia and was sent into exile, and in the riots that followed the church was largely burnt down. Theodosius II inaugurated a second church in 415, built by the architect Rufinus. Excavations in the 1930s uncovered its western remains, and some of the trenches were left open, laying bare its foundations. Fragments of its frieze survive, with twelve lambs representing the twelve apostles.
For the third church Justinian appointed two architects: Anthemius of Tralles, a mathematician, and Isidore of Miletus, a geometer and engineer. More than ten thousand people worked on it. Inside, the walls were sheathed in green and white marble with purple porphyry, and in gold mosaics. Outside, white marble cladding and gilding gave the building a shimmering look and made it far more visible from the sea. Justinian and Patriarch Menas inaugurated the church on 27 December 537, five years and ten months after work began. The court historian Procopius wrote that if the people had been shown a model of it before the fire, they would have prayed to see their old church destroyed, so that this one could take its place.
The daring design had a weakness: the dome was too flat. Earthquakes in 553 and 557 cracked it, and in 558 the eastern semi-dome collapsed, destroying the altar and the pulpit. Justinian handed the repair to Isidore the Younger, who used lighter materials and rebuilt the whole vault twenty Byzantine feet higher than before. That gave the interior its present height of more than fifty-five metres. The work was finished in 562, and for the rededication on 24 December the poet Paul the Silentiary composed a long poem describing the building.
Early in the tenth century, the pagan ruler of Kievan Rus' sent emissaries abroad to learn about other faiths. After Hagia Sophia, they reported: "We did not know where we were, in heaven or on earth." In 1054 Humbert of Silva Candida, the envoy of Pope Leo the Ninth, delivered here the excommunication of Patriarch Michael Cerularius, an act that marks the start of the split between the Catholic and Orthodox churches.
In 1204 the armies of the Fourth Crusade sacked Constantinople and ransacked the church, and for more than half a century it served as a Catholic cathedral. Baldwin the First was crowned emperor in it on 16 May 1204. Enrico Dandolo, the doge of Venice who led the crusade, was buried inside. His original tomb was destroyed by the Ottomans; the marker for him that survives was placed by an Italian restoration team in the nineteenth century and is often mistaken for a medieval one. When the Byzantines took the city back in 1261, they found the church dilapidated.
On 12 December 1452, the union of the Catholic and Orthodox churches was proclaimed in Hagia Sophia. It was so unpopular that many faithful avoided the cathedral. Yet when the walls were breached in May 1453, crowds ran to it. The historian Doukas explained why: for years, soothsayers had foretold that the Turks would reach as far as the Column of Constantine, and that an angel would then descend and hand a sword to a humble man standing by the column, and the Turks would be driven back. "In one hour that famous and enormous church was filled with men and women," he wrote. "They closed the gates and stood there, hoping for salvation." Instead, the soldiers battered down the doors.
The city fell on 29 May 1453. Sultan Mehmed the Second entered the city and performed the Friday prayer in Hagia Sophia, which became a mosque, with minarets added soon after. It remained the principal mosque of Istanbul until the Sultan Ahmed Mosque was built in 1616, and its design was echoed by Ottoman mosques a thousand years after it was raised, among them the Süleymaniye and the Rüstem Pasha Mosque. In 1935 it became a museum, and in 2020 it became a mosque again.