Skip to content
tralover Plan a trip
Menu ☰

💎 Hidden gem · Kadırga, Sultanahmet, 1 km from central Istanbul

Little Hagia Sophia (Küçük Ayasofya Mosque)

By the Tralover editorial team · Fact-checked · How we research

Justinian's first great church, quiet beside the sea walls

Little Hagia Sophia
Photo: fusion-of-horizons / CC BY 2.0

Walk down the hill from the Blue Mosque toward the Sea of Marmara and the crowds simply fall away. Here, among quiet streets near the old sea walls, stands a brick church with a low dome. Locals call it Küçük Ayasofya, Little Hagia Sophia. It is in fact a little older than its famous big sister. It was built by the same emperor, Justinian, in the early years of his reign. Today it is a working mosque, and around it a garden courtyard holds a café and small craft rooms. Sit for a while under the trees. Then step inside and look up into a dome that some scholars think may have helped the builders practise for Hagia Sophia.

The story of Little Hagia Sophia (Küçük Ayasofya Mosque)

When Justinian became emperor in 527, he soon began building a church here dedicated to two soldier saints, Sergius and Bacchus. It stood beside his family's palace. Tradition says the saints had once saved Justinian's life by appearing in a dream to his uncle, the emperor Justin, but that story is a legend. The church was finished by about 536, so it is slightly older than the great Hagia Sophia, completed in 537.

For nine centuries it was an important church. After the Ottoman conquest, around the early 1500s, it was converted into a mosque by Hüseyin Ağa, chief of the white eunuchs at the palace under Sultan Bayezid II. He added a portico, a madrasa for students around the courtyard, and his own tomb.

Over the years the building suffered from earthquakes and from the railway line built along the shore in the nineteenth century, whose vibrations shook its walls. It was also at risk of damp. A major restoration was completed in the 2000s, and the building has been well cared for since. Today it is once again a calm, well-kept neighbourhood mosque, and its courtyard is one of the most peaceful corners of the old city.

The setting

The building lies a few minutes south of the Blue Mosque, near the Marmara shore, with the railway and the old sea walls close by. Outside it is a fairly plain brick structure. Inside, its plan is clever: an octagon set inside an irregular square, with a dome resting on eight piers. Between the piers, columns of green and red marble carry two levels of arches, with a gallery above. The madrasa wraps around a garden courtyard, its small domed cells now used by artisans and a tea garden. A fountain and Hüseyin Ağa's tomb sit in the forecourt.

Why it matters

Little Hagia Sophia is one of the oldest surviving Byzantine buildings in Istanbul and an important step in the story of dome building. It shows the experiments that led to the great Hagia Sophia, and its carved capitals and inscription are fine examples of sixth-century art. Because it is quiet and free, it lets you feel early Byzantine space without crowds. It is also a living neighbourhood mosque, with a courtyard locals use for tea and conversation.

Your walk-through

The stops a guide would take you to, in order.

  1. 1

    The garden courtyard and madrasa

    Begin in the courtyard. Around you, low domed cells form an L. These were rooms for students of the Ottoman madrasa, the religious school founded here in the early 1500s. Today some hold craft workshops and a small tea garden. Order a glass of tea, sit under the trees and look across at the church. Notice the old brickwork, layered and slightly uneven.

  2. 2

    The tomb of Hüseyin Ağa

    Near the entrance is the tomb of Hüseyin Ağa, the palace official who turned this church into a mosque. He was chief of the white eunuchs at the palace under Sultan Bayezid II, a powerful post. Many Ottoman founders chose to be buried by their foundation, so that people coming to pray would remember them. It is a quiet, simple tomb.

  3. 3

    The Ottoman portico

    Step under the portico at the front. This was an Ottoman addition, giving the church a mosque's entrance porch. Look at the mix of old columns reused here. Ottoman builders often recycled Byzantine stone. Remove your shoes and go inside, pausing to let your eyes adjust to the soft light.

  4. 4

    The octagon and dome

    Stand in the centre under the dome and turn slowly. The space is an octagon inside a square, so the corners make curved bays, and the dome seems to ripple. The dome is made of segments, a pattern sometimes called a pumpkin dome. Some scholars think this church was a kind of rehearsal for Hagia Sophia. Whether or not that is true, the family likeness is clear.

  5. 5

    The capitals and the inscription

    Look up at the columns on the ground floor and their carved capitals, deeply cut like lace. Some still bear monograms of Justinian and Theodora. Then look along the frieze above the lower arches. A long Greek inscription runs around the room, in verse, honouring Justinian, his wife Theodora and Saint Sergius. It has survived here for almost fifteen hundred years.

Things you might not know

  • The church was finished around 536, a year before the great Hagia Sophia.
  • A Greek verse inscription honouring Justinian and Theodora still runs around the interior frieze.
  • Vibrations from the nineteenth-century railway along the shore are blamed for damage to the walls over time.

Researched November 2026 from: en.wikipedia.org, archnet.org, turkeytravelplanner.com. Fees and hours change, so check on the day.

Plan my Istanbul trip · free Listen 🎧