Hagia Sophia Istanbul History: From Construction to the Present Day

In the heart of Istanbul, overlooking the historic Sultanahmet Square, stands one of the most extraordinary wonders of the world: the Hagia Sophia.

With more than 1,500 years of history, this imposing structure has changed its face several times, spanning empires, religions and revolutions.

Founded as a Christian church during Byzantine rule, transformed into an Ottoman mosque, then a secular museum, and now again a place of Islamic worship, Hagia Sophia is much more than a building.

It is a powerful symbol of faith, politics, and identity. Each stone, mosaic, or minaret tells of a different phase of Istanbul-once Constantinople-and its central role in Mediterranean history.

If you are in the city, you cannot miss it.

Hagia Sophia is an experience that mixes spirituality, art and history in one glance. In this article we will trace its fascinating evolution: from the first stone laid under the Eastern Roman Empire, to more recent events.

We’ll guide you through emperors and sultans, gravity-defying domes and policy decisions that have circled the globe.

Want to know how to visit today? Click on the banner below to view tickets to enter Hagia Sophia.

hagia sophia costantinopoli

The best-selling

Hagia Sophia: Skip-the-line ticket

Avoid the ticket line and enter Istanbul’s most impressive mosque

Secure payment

Instant confirmation

Mobile ticket

The history of the Hagia Sophia

Origins, from Magna Ecclesia to the church of Justinian

hagia sophia storia

The history of Hagia Sophia begins long before its present name. In 360 A.D., Emperor Constantius II, son of Constantine the Great, had a first monumental basilica known as Magna Ecclesia, that is, the Great Church, built.

It stood near the imperial palace in Constantinople and reflected the ambition of the new capital of the Eastern Roman Empire: to become the center of Christianity.

That initial church, however, did not survive for long.

It was damaged and rebuilt a first time under Emperor Theodosius II, but was finally destroyed in 532 A.D. during the Nika revolt, one of the most violent uprisings in Byzantine history.

At that point Justinian I, an emperor determined to leave an indelible mark, entered the scene.

He ordered the construction of a new basilica completely different from its predecessors: larger, more majestic, more ambitious.

To realize it he called two brilliant minds: Antemius of Tralle, a physicist and mathematician, and Isidore of Miletus, an architect skilled in complex geometry.

Work began in 532 and was completed in record time: just five years, with more than 10,000 workers at work.

On December 27, 537, Justinian could finally enter the new church and, according to legend, proudly exclaim:

Solomon, I have surpassed you!

The new Hagia Sophia was built using materials from all over the Empire: green marble from Egypt, black stone from the Bosporus, yellow stone from Syria.

Even columns from the Temple of Artemis were reused to embellish its interior. The message was clear: this basilica was to be the spiritual center of the Byzantine world, and to demonstrate the strength and greatness of Constantinople.

Today, this Justinian structure still stands, although restored several times over the centuries.

By visiting it, you can walk among the same columns and under the same dome that made the entire late ancient world breathless.

Architecture and Symbolism

To enter Hagia Sophia is to cross a boundary between engineering, art and spirituality.

When it was inaugurated in 537 AD, no Christian building in the world could rival its grandeur. And even today, its architecture leaves one speechless.

In the center of the structure we find a monumental dome: over 30 meters wide and 55.6 meters high from the ground.

A prodigy for the time. It appears to be suspended in the void, thanks to a system of forty windows that let in light and visually lighten the entire structure.

A solution so innovative that many at the time believed it was the work of God.

Behind this marvel were two key figures-Antemius of Tralle and Isidore of Miletus. They were not architects in the modern sense of the word, but scientists, able to apply notions of geometry and physics to create something never seen before.

They did not use traditional arches, but a complex system of pendants to make the dome rest on a rectangular base.

This was a choice that revolutionized Byzantine architecture and would influence churches and, later, mosques for centuries.

Inside, precious materials and religious symbolism coexist. Egyptian porphyry, green marble from Thessaly, gold, mosaics, ancient columns-every detail served to convey the idea of a church representing heaven on earth.

During the reign of Basil II in the 10th century, key decorative elements were added: cherubim on the vaults, a new image of Christ Pantocrator, and a beautiful Virgin and Child on the apse, flanked by the apostles Peter and Paul.

Although many of these mosaics were covered over in later centuries, some are still visible.

But the architecture of Hagia Sophia is not only technique and beauty: it is power made stone. Each element tells of the Byzantine empire’s desire to place itself at the center of the Christian world, and each restoration, each subsequent modification, represents a new chapter in its long history.

From Christian church to Latin cathedral

storia basilica santa sofia istanbul

Hagia Sophia was built as a symbol of Orthodox Christianity and the spiritual heart of the Byzantine Empire.

But in 1204, this balance was completely upset.

During the Fourth Crusade, instead of liberating the Holy Land, the Crusaders sacked Constantinople.

It was one of the most dramatic moments in medieval history: the city was devastated, relics stolen, churches looted.

And Hagia Sophia was not spared.

The Latin Knights transformed Hagia Sophia into a Roman Catholic cathedral. For about sixty years-from 1204 to 1261-it was the main place of worship of the Latin Empire of the East, established following the conquest.

This change was not only symbolic.

The interior was modified, liturgical rites changed, and the Orthodox community was excluded from its mother church.

Many residents of Constantinople saw Hagia Sophia as a desecrated church, and over time the entire building fell into a state of semi-abandonment.

In 1261, the Byzantine emperor Michael VIII Palaeologus succeeded in recapturing the city. The cathedral then returned to Orthodox worship, but it never regained its former glory. Earthquakes, structural damage and lack of funds compromised its integrity. Repairs were ordered in 1354, but the decay was now evident.

In those years, Hagia Sophia was no longer the center of the Byzantine world. It had become a fragile symbol, surrounded by religious tensions, political crises and portents of a waning empire.

Want to find out what happened when the Ottomans arrived? Read on: the next section is devoted to the transformation into a mosque.

basilica di santa sofia costantinopoli

Bestseller ever

Hagia Sophia: Skip-the-line ticket

Avoid the ticket line and enter Istanbul’s most impressive mosque

Secure payment

Instant confirmation

Mobile ticket

Ottoman conversion: the Aya Sofya mosque

On May 29, 1453 everything changes.

Constantinople falls under siege by the Ottoman Empire led by the young Sultan Muhammad II.

It is the end of the Byzantine Empire and the beginning of a new era: that of Istanbul.

A few hours after entering the city, Muhammad the Conqueror enters Hagia Sophia.

The building had been hastily abandoned; some say women and children took refuge there. The sultan, in a highly symbolic gesture, ordered the immediate conversion of the church into a mosque.

Thus began a new phase of its life: Aya Sofya Camii, the mosque of Hagia Sophia. The Christian mosaics are covered with plaster, but not destroyed-a sign of respect or perhaps admiration for the beauty of the building.

Key Islamic elements are added: the mihrab (niche pointing to Mecca), the minbar (sermon pulpit), and especially the minarets, which forever alter the Istanbul skyline.

Over the centuries, Ottoman sultans took care of Hagia Sophia.

Some had decorations, chandeliers, calligraphic inscriptions added to it. But it was in the 19th century, between 1847 and 1849, that one of the most important restorations took place, under Sultan Abdülmecid I.

The work was entrusted to two brothers from Ticino, Gaspare and Giuseppe Fossati, who consolidated the structure and saved many mosaics, documenting them before covering them again, as required by the religious authorities.

For more than four centuries, Hagia Sophia was one of the most important mosques in the Ottoman Empire. Generations of worshippers prayed inside it, and its symbolic role as a bridge between imperial grandeur and religious devotion never failed.

Traces of this phase can still be seen today: from the giant medallions with the names of Allah, Muhammad and the caliphs, to the delicate fusion of Christian and Islamic elements that makes Hagia Sophia a unique place in the world.

The Atatürk Museum

In 1934, the newly formed Republic of Turkey was changing its face under the leadership of Mustafa Kemal Atatürk, the founder of the modern nation. One of the most powerful symbols of this transformation was Hagia Sophia itself.

By a decree signed on November 24, 1934, the Turkish government abolished the religious status of a mosque and declared Hagia Sophia a national museum. The building was officially reopened to the public in 1935 as a cultural and historical space accessible to all, regardless of religious faith.

The choice was highly symbolic: Hagia Sophia, for centuries disputed between Christians and Muslims, became a monument of shared history, a bridge between East and West, and above all an emblem of the new secular Turkey.

The reconversion work was entrusted to the Ministry of Education and also supervised by international experts. Many Christian mosaics were brought back to light, thanks in part to the documentation left by the Fossati brothers in the previous century.

At the same time, major Islamic elements, such as calligraphic medallions and the mihrab, were preserved.

The result was a place of exceptional artistic and cultural value, which attracted millions of visitors from all over the world.

Hagia Sophia was listed as a UNESCO World Heritage Site in 1985, along with the entire historic area of Istanbul.

For decades, Aya Sofya was one of the symbols of cultural dialogue: neither church nor mosque, but something bigger, a visual synthesis of Turkish and Mediterranean history.

If you are planning a visit to Istanbul, don’t miss the chance to explore this unique space. Check our tickets page for available dates and suggestions on how to arrange your visit.

Conversion to a mosque in 2020

On July 10, 2020, an announcement shocks Turkey and international public opinion: Hagia Sophia will become a mosque again.

It all begins with a ruling by the Turkish Council of State, declaring illegitimate the 1934 decree by which Atatürk had turned the building into a museum.

A few hours later, President Recep Tayyip Erdoğan signed the executive decree: Hagia Sophia will be reopened to Islamic worship and will come under the management of the Diyanet, the state agency for religious affairs.

The status change comes amid a strongly nationalist and conservative political climate. For many devout Turks, it is the return of a spiritual symbol, long overdue. For others, inside and outside Turkey, it is a move that undermines the monument’s universal value and Atatürk’s secular vision.

UNESCO, the European Union and the Patriarchate of Constantinople have expressed concern.

Not about the religious service itself, but about the lack of dialogue and possible restriction of public access.

However, the Turkish government has guaranteed that Hagia Sophia will remain open to all visitors, Muslim and non-Muslim alike.

The Christian mosaics were covered temporarily during the prayer, but not removed or damaged.

As of July 2020, the building has returned to the name Ayasofya Camii, as it was in the centuries of the Ottoman Empire.

Admission is free, but some areas may not always be accessible due to prayer times.

To visit Hagia Sophia today is to take a close look at the tensions and cultural layers of contemporary Turkey.

A place that keeps changing but never stops telling its thousand-year history.

Hagia Sophia today

hagia sophia storia basilica istanbul

ID 41560524 © Fabio Formaggio | Dreamstime.com

Today, Hagia Sophia is again an active mosque and also one of the most visited tourist attractions in the world.

Located in the Sultanahmet district in the historic heart of Istanbul, it continues to fascinate millions of people every year.

Since 2020, admission has been free for Muslim worshippers, as with all mosques in Turkey.

However, access is regulated: during the five daily prayers, some areas are closed to the public to ensure the worshippers’ recollection.

In your free moments, you can still explore much of the structure, walk under the Byzantine dome, look at the Ottoman medallions and search your eyes for hidden mosaics, which resurface just outside the prayer area.

Inside, a visual coexistence between faiths reigns: Christ Pantocrator and the Virgin Mary coexist with the name of Allah and the Prophet Muhammad.

This overlap makes Hagia Sophia a unique case in the history of world religious architecture.

It is currently managed by Diyanet, but the building remains under the supervision of the Turkish Ministry of Culture, given its historical importance.

Tourist visits continue, although the atmosphere may be more “religious” than in the museum’s past.

In the academic and cultural world, the debate is still heated.

There are those who see the conversion as a symbolic loss to the secular and universal heritage, and those who interpret it as a return to the deep identity of the place.

One thing, however, is certain: Hagia Sophia is today a crossroads between spirituality and culture, between past and present. A place where you walk on centuries of history, even while taking a picture with your smartphone.

Conclusion

Hagia Sophia is not just a building. It is a living story.

Walking through its doors, you enter a world of Byzantine emperors, Ottoman sultans, secular reformers and modern leaders. Its walls tell the story of Constantinople and Istanbul, but also that of entire civilizations that have succeeded one another in the Mediterranean basin.

Built as a Christian church, transformed into a mosque, then a museum, and now again a place of Islamic worship, Hagia Sophia keeps changing shape but never loses its evocative power. It is one of those places that force you to reflect on time, faith, and culture.

Visiting it today, you have the opportunity to touch the layering of history, but also to observe the contemporary transformations of Turkey.

It is not just a tourist stop: it is a profound experience that speaks of religion, politics, art and identity.

If you are planning a trip to Istanbul, Hagia Sophia undoubtedly deserves a place of honor on your itinerary.

For all the information on how to arrange your visit, check out our tickets page: you’ll find schedules, access arrangements and useful tips.

hagia sophia costantinopoli

The best-selling

Hagia Sophia: Skip-the-line ticket

Avoid the ticket line and enter Istanbul’s most impressive mosque

Secure payment

Instant confirmation

Mobile ticket