Heritage

Hagia Sophia

Ἁγία Σοφία (Ayasofya)

532–537 CE · Constantinople

In one sentence

Hagia Sophia is a huge domed building in Istanbul that was built as a Christian church for the emperor Justinian in just five years (532–537), later became a mosque, then a museum, and is a mosque again today.

Hagia Sophia
Image: Arild Vågen · CC BY-SA 3.0 · Wikimedia Commons

Start at the top for an easy introduction. Go further down for more detail and scholarship.

  • Easy
  • Intermediate
  • Advanced

For young readers

Imagine walking into a room so big that a 15-storey building could stand inside it, with a round roof floating high above your head. That is how people have felt for almost 1,500 years when they step into Hagia Sophia in Istanbul, a city in Turkey that used to be called Constantinople.

The name Hagia Sophia is Greek and means “Holy Wisdom”. It was built as a church by Justinian, the ruler of the Eastern Roman Empire, which we often call the Byzantine Empire. An angry crowd had burned the old church during a riot, so Justinian ordered a new one that would be the most amazing building in the world. Thousands of workers finished it in only about five years.

The most famous part is the dome, the giant round roof. It sits on four huge curved corners, like a ball resting on a square table. Around the bottom of the dome are forty windows. When sunlight pours through them, the dome seems to float on a ring of light.

Inside, the walls were covered with coloured marble and shining pictures made from tiny pieces of glass and gold, called mosaics. Some show Jesus, his mother Mary, angels and emperors.

In 1453 the Ottoman Turks captured the city, and Hagia Sophia became a mosque, a place where Muslims pray. Tall towers called minarets were added outside. In 1935 it became a museum that everyone could visit, and in 2020 it became a mosque again. Visitors of every religion can still go inside today, outside prayer times.

At a glance

Built
532–537 CE (dedicated 27 December 537); dome rebuilt after a collapse and rededicated 24 December 562
Place
Constantinople (modern Istanbul, Türkiye), on the historic peninsula near the former Great Palace
Patron
Emperor Justinian I (r. 527–565)
Architects
Anthemius of Tralles and Isidore of Miletus; the second dome by Isidore the Younger
Size
Main building about 82 × 73 m; central dome about 31–33 m across and 55.6 m above the floor, ringed by 40 windows
Uses
Cathedral church (537–1453, a Latin Catholic cathedral 1204–1261); mosque (1453–1934); museum (1935–2020); mosque again since 2020
Status
Part of the UNESCO World Heritage Site “Historic Areas of Istanbul” (inscribed 1985)
Significance
The culminating building of late antiquity and the defining monument of Byzantine architecture; a model for later churches and Ottoman imperial mosques

Easy

What is Hagia Sophia?

Hagia Sophia (Greek Ἁγία Σοφία, “Holy Wisdom”; Turkish Ayasofya) stands on the tip of the historic peninsula of Istanbul, between the Golden Horn and the Sea of Marmara. For more than nine hundred years it was the cathedral of Constantinople, the capital of the Eastern Roman (Byzantine) Empire, and the church of the Patriarch of Constantinople, the senior bishop of the Eastern Orthodox world. The name does not refer to a saint called Sophia: the church was dedicated to Christ as the Wisdom of God.

The building we see today is the third church on the site. It was built for Emperor Justinian I between 532 and 537 after the previous church had been burned during a violent uprising. It was the largest enclosed interior space in the world for centuries, and its central dome, resting on four curved triangles of masonry called pendentives, was a daring piece of engineering.

Hagia Sophia has had four lives. It was a Christian cathedral from 537 to 1453 (with a Latin Catholic interval after the Fourth Crusade), an Ottoman imperial mosque from 1453 to the 1930s, a museum of the Turkish Republic from 1935 to 2020, and, since July 2020, a functioning mosque once more. Each period has left its mark on the building, so that Byzantine mosaics and Ottoman calligraphy now share the same walls.

[2][1][8]

Easy

How to “read” the building: a square below, heaven above

From outside, Hagia Sophia looks like a mountain of domes and buttresses, with four slender Ottoman minarets at its corners. Much of this bulk was added over the centuries to hold the building up. The original idea is easier to see from inside.

Visitors enter from the west through two long entrance halls, the outer and inner narthex. The central door, the Imperial Gate, was once reserved for the emperor. Beyond it opens the nave, the great central space. Its core is a square about 31 m on each side, marked by four massive piers. Arches spring from pier to pier, and between the arches four pendentives curve upward and inward to form a circle on which the dome sits. To the east and west, two half-domes extend the space, and smaller semi-domes (exedrae) spread out from them, so that the eye travels upward in a cascade of curves toward the main dome.

Around the base of the dome runs a ring of forty windows. Light entering through them, and through many other windows in the walls, dissolves the heavy structure so that the dome appears to hover. The historian Procopius, who saw the new church, wrote that the dome seemed not to rest on solid masonry but to hang from heaven on a golden chain.

On three sides the nave is surrounded by aisles and, above them, broad galleries shaped like a horseshoe. In Byzantine times the galleries were used by the empress and her court, among others; a green stone disc on the western gallery marks where the empress’s seat is thought to have been. At the far east end is the apse, the curved sanctuary where the altar stood. In the Ottoman period a mihrab (a niche showing the direction of Mecca) was placed there, set slightly off the church’s axis because Mecca lies to the south-east.

[2][8][6]

Easy

Why it was built: fire, riot and an emperor’s ambition

The first “Great Church” on the site was dedicated in 360 under Emperor Constantius II. It was burned in 404 during riots connected with the exile of the bishop John Chrysostom. A second church, built under Theodosius II, was dedicated in 415. Remains of its colonnaded entrance can still be seen in front of the present building.

In January 532, supporters of Constantinople’s two chariot-racing factions, the Blues and the Greens, united against Justinian in the Nika riots, named after their cry “Nika!” (“Conquer!”). Much of the city centre was burned, including the second Hagia Sophia. The revolt was crushed with great bloodshed in the Hippodrome; ancient sources speak of tens of thousands killed.

Only weeks later Justinian began rebuilding on a scale no one had attempted. The new cathedral would show that the emperor had restored order and that his rule was blessed by God. It was dedicated on 27 December 537, less than six years after the riots. A later legend says that on entering the finished church Justinian exclaimed, “Solomon, I have surpassed you!”, comparing it with the Temple in Jerusalem, but this story comes from a much later text and is not regarded as historical.

[2][4][8]

Intermediate

Engineering the dome: architects, materials and collapses

Justinian entrusted the project to two men described in the sources as mechanikoi, experts in geometry and mechanics rather than builders in the modern sense: Anthemius of Tralles, a mathematician who wrote on optics and burning mirrors, and Isidore of Miletus, a geometer who edited works of Archimedes. Their design combined the long axis of a basilica, the traditional church plan, with the centralized form of a domed building.

The walls and vaults were built mainly of brick laid in very thick beds of mortar, with stone for the piers. Marble came from across the Mediterranean: white marble from the island of Proconnesus in the Sea of Marmara, green stone from Thessaly, and red-purple porphyry from Egypt. Older legends claimed that the columns were plundered from pagan temples; modern scholars think most marble was quarried new, although the porphyry may have been reused. Iron cramps and ties helped hold the masonry together.

Speed had a cost. The mortar was not given time to harden before the next courses were laid, and the weight of the shallow first dome pushed the piers and walls outward. After earthquakes in 553 and 557, part of the dome collapsed in 558. Isidore the Younger, the nephew of Isidore of Miletus, rebuilt it about 6 m higher, with a steeper profile and forty ribs, which reduced the outward thrust. The church was rededicated on 24 December 562; the poet Paul the Silentiary composed a long verse description for the occasion.

Later earthquakes brought partial collapses in 989 and 1346. After the first, the Armenian architect Trdat rebuilt the western arch and part of the dome; after the second, repairs were carried out in the 1350s. Because of these repairs the dome is today slightly elliptical, and only parts of the sixth-century shell survive. Buttresses were added by Byzantine emperors and, in the sixteenth century, by the Ottoman architect Mimar Sinan, whose reinforcements are credited with helping the building survive later earthquakes.

[2][5][9][10]

Intermediate

The Great Church of Byzantium: liturgy, power and mosaics

For Byzantines, Hagia Sophia was simply the Great Church (Megale Ekklesia). It was the setting for the solemn liturgy of the capital, for coronations of emperors and for major church councils and ceremonies. Emperor and patriarch met here in a ritual that displayed the ideal harmony of church and state. In 1054 papal legates laid a bull of excommunication against Patriarch Michael Cerularius on the altar of Hagia Sophia, an event traditionally taken as the symbolic start of the schism between the Catholic and Orthodox churches.

The Russian Primary Chronicle tells how envoys of Prince Vladimir of Kyiv attended a service here in the 980s and reported that they did not know whether they were in heaven or on earth; according to the chronicle, this helped persuade Vladimir to adopt Christianity from Constantinople. Whether or not the story is literally true, it expresses how the building was meant to make worshippers feel.

Justinian’s church was decorated mainly with marble panelling, gold mosaics and crosses rather than human figures. During the period of Iconoclasm (726–787 and 814–842), when religious images were banned, figurative art was rejected. After images were restored in 843, figural mosaics were added over the following centuries. The most famous include the Virgin and Child in the apse, inaugurated with a sermon by Patriarch Photius in 867 (though the date of the surviving image is debated); the panel over the southwest entrance showing the emperors Constantine and Justinian offering the city and the church to the Virgin; portraits of emperors and empresses in the south gallery; and the Deësis, a moving image of Christ between the Virgin and John the Baptist, probably made soon after 1261.

[2][1][8]

Intermediate

Crusaders, decline and the Ottoman conquest

In 1204 the armies of the Fourth Crusade, which had turned against Constantinople, sacked the city. Hagia Sophia was looted; many treasures and relics were carried to Venice and other Western cities. For the next fifty-seven years it served as a Latin Catholic cathedral under the crusader rulers. Enrico Dandolo, the Doge of Venice who led the attack, was buried in the church; a marker placed in the nineteenth century still shows the probable spot in the east gallery.

The Byzantines recovered their capital in 1261, but the restored empire was poor and shrinking. Earthquake damage in the fourteenth century was repaired with difficulty. By the early fifteenth century visitors described the church as dilapidated.

On 29 May 1453 the Ottoman sultan Mehmed II captured Constantinople. The city was sacked for three days, and people who had taken refuge in Hagia Sophia were captured or killed. Mehmed then ordered the church converted into a mosque, and Friday prayers were held there soon after. For Orthodox Christians the fall of the city and the loss of their great church became a lasting symbol of catastrophe; for Ottomans and later Turks, the conquest was a founding triumph, remembered as the fulfilment of a hadith said to praise the conqueror of Constantinople.

[2][8]

Intermediate

Ayasofya: an Ottoman imperial mosque

As a mosque, Ayasofya was the first imperial mosque of Istanbul and was richly endowed by a charitable foundation (waqf). The Ottomans added a mihrab and minbar (pulpit), and over time four minarets, the first built soon after the conquest and the two large western ones by Sinan in the later sixteenth century. Mosaics showing human figures were gradually covered with plaster or paint, though travellers’ reports show that some remained visible for a long time. Around the building grew tombs of sultans, a school, a fountain for ablutions and other structures.

Hagia Sophia deeply influenced Ottoman architecture. Sinan studied its structure while strengthening it and sought to equal and surpass its dome in his own mosques, such as the Süleymaniye in Istanbul and the Selimiye in Edirne. The Sultan Ahmed Mosque (the “Blue Mosque”), completed in the early seventeenth century directly opposite, also develops the central-dome-and-half-domes scheme.

Between 1847 and 1849 Sultan Abdülmecid I commissioned the Swiss-Italian architects Gaspare and Giuseppe Fossati to restore the building. They consolidated the dome with an iron chain, straightened columns, and recorded mosaics they uncovered before covering them again. Eight huge round wooden panels painted by the calligrapher Kazasker Mustafa İzzet Efendi with the names of God, the Prophet Muhammad, the first four caliphs and the Prophet’s grandsons Hasan and Husayn were hung in the nave, where they remain today.

[2][7][8]

Intermediate

Museum, mosque again: Hagia Sophia in the modern world

After the founding of the Republic of Turkey, the building was closed in 1931 for restoration. From that year the Byzantine Institute of America, led by Thomas Whittemore, began uncovering and conserving the mosaics. A decision of the council of ministers in 1934 turned Hagia Sophia into a museum, which opened in 1935. For the secular republic under Mustafa Kemal Atatürk, the museum presented the building as a shared heritage of humanity rather than the property of one faith. It became the most visited monument in Turkey, and in 1985 it was included in the UNESCO World Heritage Site of the Historic Areas of Istanbul.

Calls to reopen it as a mosque grew stronger in later decades. On 10 July 2020 Turkey’s highest administrative court, the Council of State, annulled the 1934 decision, ruling that the building belonged to the foundation established by Mehmed II and could not be used for any purpose other than as a mosque. President Recep Tayyip Erdoğan then transferred it to the Directorate of Religious Affairs, and Friday prayers were held on 24 July 2020.

The change was celebrated by many Muslims in Turkey and elsewhere as the restoration of a mosque. It was criticized by the Greek government, by leaders of Orthodox and other churches, by UNESCO and by some Turkish writers and politicians, who argued that a universal monument was being used for national and political purposes. Today the building is officially the Hagia Sophia Grand Mosque. It remains open to visitors outside prayer times; during prayers the Christian images facing the prayer area, such as the apse mosaic, are covered with curtains or concealed by lighting. Questions about access, conservation and the protection of the Byzantine decoration remain the subject of international discussion.

[2][1][3]

Intermediate

Influence and legacy

Hagia Sophia set a standard for sacred architecture in three traditions. In the Orthodox world, cathedrals named after Holy Wisdom rose in Kyiv, Novgorod and elsewhere, and the domed church became the typical form of Byzantine and Slavic church building, though usually on a far smaller scale. In the Islamic world, it shaped the classical Ottoman mosque from the fifteenth to the seventeenth centuries. In the West, nineteenth- and twentieth-century architects built neo-Byzantine churches that consciously echoed its dome and half-domes.

The Pantheon in Rome has a wider dome, but that dome sits on a solid circular drum. Hagia Sophia’s achievement was to raise a dome of more than 30 m high above a square space opened up on all sides, and for many centuries it enclosed the largest interior in the world. It has been studied by engineers as a laboratory of how large masonry structures respond to earthquakes.

Finally, Hagia Sophia is a symbol whose meaning changes with the viewer: for Orthodox Christians the lost heart of Byzantium; for many Turks a monument of the 1453 conquest; for secular Turks and many international visitors, a museum that stood for coexistence. Understanding the building means understanding all of these stories together.

[2][8][1]

Advanced

Scholarly debates and open questions

The first dome. Justinian’s original dome of 537 no longer exists, and its shape must be reconstructed from Procopius, from the chronicle of John Malalas and Theophanes on the collapse of 558, and from analysis of the surviving piers, arches and pendentives. Most reconstructions assume a shallower dome, perhaps continuous with the pendentives, but the exact profile, the role of the windows, and the relative importance of hasty construction, earthquake damage and pier deformation in the collapse are still discussed by structural engineers and historians such as Rowland Mainstone and the contributors to Mark and Çakmak’s collected volume.

Design and measurement. The design has been analysed as an exercise in geometry by architects trained in mathematics. The side of the central square, roughly 31 m, was long thought to equal 100 Byzantine feet; the architectural historian Helge Svenshon has proposed instead a value of 99 feet, related to the ancient side-and-diagonal number series (70 : 99) that approximates √2. Such proposals are attractive but difficult to prove in a structure that has deformed and been repaired many times.

Dating the mosaics. The date of the apse Virgin and Child is disputed. Some scholars identify it with the image Photius described in 867; others note that Photius spoke of a standing Virgin whereas the mosaic shows her seated, and date the present image before Iconoclasm, after the earthquake of 989, or even to the late fourteenth century after the collapse of 1346. The Deësis panel is usually dated to after 1261 on stylistic grounds, but this, too, rests on comparison rather than inscription.

Heritage and meaning. Since 2020, scholars have debated how World Heritage principles apply to a living religious building with a contested history: whether “outstanding universal value” requires museum status, how the rights of a state and religious community should be balanced against international interest, and how the display of Christian art in a mosque should be managed. These are questions of law, ethics and politics as much as of art history.

[2][9][10]

Advanced

Evidence and methods

Written sources. The most important contemporary text is Procopius of Caesarea’s On Buildings (De aedificiis), written in praise of Justinian; its first book opens with Hagia Sophia. It is an eyewitness description but also a panegyric, so its claims about divine inspiration and the emperor’s personal role must be read critically. Paul the Silentiary’s verse ekphrasis for the rededication of 562 describes the furnishings, lighting and liturgical arrangements in detail. Chroniclers such as John Malalas and Theophanes record the collapses. The ninth-century Narratio on the construction of Hagia Sophia is full of legends, including the Solomon saying, and is valued more for later Byzantine attitudes than for facts about the sixth century.

Visual and archival sources. Drawings by Western travellers, the documentation of the Fossati restoration (now kept in the Canton of Ticino in Switzerland), and the photographs and reports of the Byzantine Institute in the 1930s are essential for knowing which mosaics existed and how much has been restored or lost, for example in the Istanbul earthquake of 1894.

The building itself. Brick stamps, mortar analysis, building joints and deformations reveal phases of construction and repair. In recent decades engineers have used surveys, laser scanning, ground-penetrating radar, gravimetry and computer models of seismic behaviour to study the structure, and excavations around the building have uncovered remains of the fifth-century church and its surroundings. A large conservation programme to strengthen the dome against earthquakes was under way in the mid-2020s.

Methodological lesson. Hagia Sophia is not a single sixth-century monument but a palimpsest of Byzantine, Latin, Ottoman and Republican interventions. Researchers must separate these layers, while recognizing that each layer is also part of the building’s history.

[2][6][9][10]

Key ideas

Pendentive dome
A dome carried on four curved triangular surfaces that turn a square plan into a circular base; Hagia Sophia is one of the first and largest examples.
Holy Wisdom
The dedication of the church to Christ as the divine Wisdom (Sophia) or Word of God, not to a saint named Sophia.
Architecture of light
The use of windows, gold mosaic and polished marble to make the massive structure seem weightless and heavenly.
Imperial church
The Great Church was the stage where emperor and patriarch displayed the partnership of church and state.
Layered heritage
Byzantine, Latin, Ottoman and modern Turkish periods all changed the building, and each layer is part of its meaning.
Architectural model
Its central dome and half-domes inspired Orthodox churches, Ottoman imperial mosques and later neo-Byzantine buildings.
Contested symbol
The building carries different, sometimes conflicting meanings for Orthodox Christians, Muslims, secular Turks and the wider world.

Records

  1. 360 CE — The first Great Church on the site is dedicated under Emperor Constantius II.
  2. 415 CE — A second church, built under Theodosius II after a fire in 404, is dedicated.
  3. 532 CE — The Nika riots destroy the second church; Justinian begins the present building weeks later.
  4. 537 CE — Hagia Sophia is dedicated on 27 December.
  5. 558 CE — After earthquakes, the first dome partly collapses.
  6. 562 CE — The rebuilt, higher dome by Isidore the Younger is rededicated on 24 December.
  7. 1054 — Papal legates place a bull of excommunication on the altar, a symbolic start of the East–West Schism.
  8. 1204 — Crusaders sack Constantinople; the church becomes a Latin cathedral until 1261.
  9. 1453 — Mehmed II conquers Constantinople on 29 May and converts Hagia Sophia into a mosque.
  10. 1847 — The Fossati brothers begin a major restoration (to 1849) for Sultan Abdülmecid I.
  11. 1935 — Hagia Sophia opens as a museum of the Turkish Republic.
  12. 2020 — The Council of State annuls the museum decision; the building reopens as a mosque on 24 July.

Glossary

Byzantine Empire
The modern name for the Eastern Roman Empire, which ruled from Constantinople until 1453.
Pendentive
A curved triangular piece of masonry that connects a square base to a round dome.
Nave
The main central space of a church.
Narthex
An entrance hall across the front of a church.
Apse
A semicircular recess, usually at the east end of a church, where the altar stands.
Mosaic
A picture made of many small pieces (tesserae) of coloured stone, glass or gold glass.
Iconoclasm
The rejection or destruction of religious images; in Byzantium, official policy in 726–787 and 814–842.
Mihrab
A niche in the wall of a mosque that shows the direction of Mecca for prayer.
Minaret
A tall tower next to a mosque from which the call to prayer is given.
Waqf
In Islamic law, a charitable endowment whose property is dedicated to religious or public purposes.
Ekphrasis
A literary description of a work of art or building, often in verse.

Questions and answers

What does “Hagia Sophia” mean?

It is Greek for “Holy Wisdom”. The church was dedicated to Christ as the Wisdom of God.

How did they build such a big dome so quickly?

Justinian gathered huge resources and thousands of workers. The dome rests on pendentives over four great piers and is made of relatively light brick and mortar. The speed also caused problems: the first dome partly collapsed in 558 and had to be rebuilt higher.

Is Hagia Sophia a church or a mosque?

It has been both. It was a church from 537 to 1453, a mosque from 1453 until the 1930s, a museum from 1935 to 2020, and it has been a mosque again since 2020.

Can visitors still see the Christian mosaics?

Many mosaics are still visible to visitors outside prayer times. During prayers, images facing the prayer area, such as the Virgin and Child in the apse, are covered or hidden by lighting.

Who designed Hagia Sophia?

Anthemius of Tralles and Isidore of Miletus, two scholars of mathematics and mechanics. After the collapse of 558, Isidore the Younger designed the new dome.

Why are there minarets on a Byzantine building?

They were added by the Ottomans after 1453 when the church became a mosque; the four present minarets date from the fifteenth and sixteenth centuries.

How reliable is Procopius’s description?

Procopius saw the building and describes it vividly, but On Buildings is a work of praise for Justinian, so historians check it against structural evidence and other sources.

Why was the 2020 reconversion controversial?

Supporters saw it as restoring a mosque founded by Mehmed II; critics, including UNESCO and many churches, argued that a monument of shared world heritage had been changed without international consultation and that the change carried a political message.

Sources and further reading

  1. Historic Areas of Istanbul. UNESCO World Heritage Centre
  2. Hagia Sophia. Wikipedia
  3. 하기아 소피아. 위키백과
  4. Nika riots. Wikipedia
  5. Anthemius of Tralles. Wikipedia
  6. Procopius. Wikipedia
  7. Mimar Sinan. Wikipedia
  8. Thomas Cohen, Hagia Sophia. World History Encyclopedia, 2015
  9. Rowland J. Mainstone, Hagia Sophia: Architecture, Structure and Liturgy of Justinian’s Great Church. Thames and Hudson, 1988
  10. Robert Mark and Ahmet Ş. Çakmak (eds.), Hagia Sophia from the Age of Justinian to the Present. Cambridge University Press, 1992

Related

Written with AI assistance from the published sources listed above, and revised as new research appears.

← Back to the map