History of the Blue Mosque

How a young sultan's ambition, a master architect's vision, and 21,043 hand-painted tiles created Istanbul's most iconic landmark.

Book a Guided Tour →

The Blue Mosque — officially the Sultan Ahmed Mosque (Sultanahmet Camii) — has stood at the heart of Istanbul for over four centuries. Commissioned by a teenage sultan determined to restore his empire's prestige, designed by an architect who spent a lifetime in the shadow of greatness, and built against fierce opposition from the empire's own religious scholars, the mosque's story is as dramatic as its silhouette.

A Young Sultan's Ambition

Sultan Ahmed I was born on 18 April 1590 in Manisa, a city in western Anatolia where his father served as provincial governor. When his father Mehmed III died in December 1603, Ahmed ascended to the Ottoman throne at just thirteen years old, inheriting an empire in crisis.

The wars with the Habsburg monarchy in the west and the Safavid dynasty in the east had drained Ottoman resources for over a decade. In 1606, the Peace of Zsitvatorok ended the long war with Austria — but on humiliating terms. For the first time, the treaty addressed the Habsburg emperor as the equal of the Ottoman sultan and abolished the annual tribute Austria had been paying to the Porte. For an empire accustomed to dominance, this was a profound blow to prestige.

Ahmed I was also the first sultan to break with the Ottoman tradition of royal fratricide. Rather than executing his younger half-brother Mustafa upon taking the throne — as custom demanded — Ahmed spared his life. He was likely too young to have fathered an heir, and killing Mustafa would have endangered the dynasty's survival.

Faced with military setbacks and unable to claim the spoils of conquest that traditionally funded an imperial mosque, Ahmed I made a bold decision. He would build a mosque so grand it would rival the Hagia Sophia itself — asserting the empire's spiritual and architectural supremacy through faith rather than warfare. He was nineteen years old.

Ahmed I (1590-1617)

Opposition and Controversy

The decision was immediately controversial. Ahmed I was the first sultan to commission an imperial mosque since Selim II, who had died in 1574. Neither Murad III nor Mehmed III before him had undertaken such a project. The choice of site was deliberately provocative: the southeast side of the ancient Byzantine Hippodrome, directly opposite the Hagia Sophia — the most important mosque in the empire and the symbolic heart of Ottoman Constantinople.

The site was already occupied by the palaces of several powerful Ottoman viziers, including that of Sokollu Mehmed Pasha. Expropriating these properties was both costly and politically sensitive.

But the fiercest opposition came from the ulema — the empire's Islamic legal scholars. Traditionally, sultans were expected to fund the construction of an imperial mosque only with the spoils of military victory. Ahmed I had won no major battles and was diverting funds directly from the state treasury during a period of economic hardship. The ulema protested publicly, and some went so far as to forbid Muslims from praying at the mosque.

Despite the opposition, Ahmed pressed ahead. According to accounts from the era, the sultan demonstrated his personal commitment to the project by attending the groundbreaking ceremony and digging with a golden pickaxe.

The Architect: Sedefkâr Mehmed Ağa

The man tasked with realising Ahmed's vision was Sedefkâr Mehmed Ağa, one of the most accomplished yet under-recognised architects of the Ottoman period.

Born around 1540, likely in the Albanian city of Elbasan, Mehmed was brought to Istanbul in 1563 through the devşirme — the Ottoman levy that recruited Christian boys from the Balkans for service in the empire. After six years as a cadet, he trained in music before spending twenty years mastering the art of mother-of-pearl inlay, from which he earned his name: Sedefkâr, meaning "worker in mother-of-pearl."

He eventually turned to architecture, becoming a pupil of the legendary Mimar Sinan — the greatest architect in Ottoman history and the creator of the Süleymaniye and Selimiye mosques. Mehmed served as Sinan's first assistant, running the office in the master's absence.

When Sinan died in 1588, Mehmed was not appointed as his successor. The position of chief imperial architect went first to Davut Ağa, then to Dalgıç Ahmet Ağa. It was not until 1606 — after decades of patience and service — that Mehmed Ağa was finally named chief imperial architect to the Ottoman court.

Three years later, at roughly seventy years of age, he received the commission that would define his legacy: the Sultan Ahmed Mosque. His biographer, Cafer Efendi, would later describe the project as the culmination of Mehmed Ağa's entire career. Cafer Efendi also recorded the architect's methods and the architectural training of the period in a treatise on architecture, the Risâle-i Mi'mâriyye.

Seven Years of Construction (1609–1616) Section Title

Construction began in 1609 and continued for approximately seven years. Mehmed Ağa synthesised the structural innovations of his master Sinan with a more decorative, sculptural style of his own — one that architectural historian Doğan Kuban characterised as more attentive to ornamental detail than Sinan's rigorous spatial designs.

The design drew inspiration from two sources: the earlier Şehzade Mosque (one of Sinan's works from the early sixteenth century) and the Hagia Sophia itself, whose Byzantine engineering had awed Ottoman architects for generations.

The result was a prayer hall measuring 64 by 72 metres, crowned by a central dome 23.5 metres in diameter that soars 43 metres above the floor. The dome is supported by four massive cylindrical pillars — so enormous they earned the nickname "elephant feet" — and surrounded by four semi-domes, each flanked by three smaller semi-domes or exedrae. Four additional domes cover the corners of the prayer hall, creating the signature cascading silhouette visible from across Istanbul.

The interior was designed so that the imam could be seen and heard from almost anywhere in the prayer hall, with the exception of the areas directly behind the great pillars. A marble mihrab (prayer niche) with a muqarnas vault marks the direction of Mecca, while beside it stands the richly carved marble minbar (pulpit), topped with a gold-covered conical cap.

The Six Minarets

The mosque's most controversial architectural feature was its six minarets — an unprecedented number for an Ottoman mosque. Most imperial mosques had two or four. At the time, the only mosque in the Islamic world with six minarets was the Masjid al-Haram, the Grand Mosque of Mecca.

The ulema objected on both religious and symbolic grounds. The issue was resolved when Sultan Ahmed I agreed to fund the construction of a seventh minaret at the Grand Mosque in Mecca, ensuring that the holiest site in Islam would once again stand apart.

Today, the six minarets — four with three balconies and two with two, totalling sixteen balconies in all — remain one of the mosque's most distinctive features and a defining element of Istanbul's skyline.

21,043 İznik Tiles

The interior decoration of the Blue Mosque represents the peak — and, in many ways, the twilight — of the celebrated İznik tile tradition.

Ahmed I had a deep appreciation for İznik ceramics. Starting in 1607, two years before construction officially began, orders for tiles were sent continuously to the workshops of İznik (ancient Nicaea) in northwestern Anatolia. So great was the sultan's demand that in 1613 he issued an imperial decree forbidding the production and sale of İznik tiles for any other purpose until his commissions were complete. The entire İznik tile industry was effectively commandeered for the mosque.

A total of 21,043 tiles, featuring over fifty different designs, were installed inside the mosque. The finest are concentrated on the walls of the upper gallery on the north side, though these are difficult for most visitors to see today. The motifs include tulips, carnations, cypresses, and other floral patterns in blues, greens, whites, reds, and turquoises.

Some panels were designed specifically for the mosque; others appear to have been collected from various sources and assembled here. Later repairs introduced lower-quality tiles that are distinguishable from the originals.

Above the level of the tilework, nearly seventy-five percent of the walls are covered in painted decoration — predominantly blue in colour, which is one of the reasons the mosque earned its popular Western name. Much of this original paintwork was replaced in 1883 with new stencilled decoration, some of which altered the original colour scheme.

The Windows and the Light

The mosque contains approximately 260 windows. Each semi-dome has fourteen, and the central dome has twenty-eight (four of which are blind). The smaller exedrae contain five windows each.

The original stained glass was a point of particular pride. Some of the coloured glass was manufactured locally, but much of it — especially the finest pieces — was imported. A portion was a gift from the Signoria of Venice, sent at the request of Ahmed I in 1610.

Tragically, most of these original windows have been lost over the centuries and replaced with less elaborate modern glass. The result is that the mosque's interior is likely brighter today than the sultan would have known it — the filtered, coloured light of the Venetian glass replaced by the clear white light of plain windows.

The Külliye: More Than a Mosque

The Sultan Ahmed Mosque was not built as an isolated house of worship. Like all great Ottoman imperial mosques, it was the centrepiece of a külliye — a religious and social complex that served the surrounding community.

The original complex included a madrasa (school for religious instruction), a hospital (darüşşifa), a hospice, a public kitchen (imaret) and bakery for feeding the poor, a public bath, rows of shops, fountains, and the sultan's own mausoleum. These institutions reflected the Ottoman understanding that a great mosque should serve as a centre not only of religious life but of education, charity, and commerce.

Today, most of these structures have been repurposed. The neighbourhood that grew around the complex now bears the sultan's name: Sultanahmet.

Death and Legacy

Sultan Ahmed I died of typhus and gastric bleeding on 22 November 1617 at the Topkapı Palace. He was twenty-seven years old.

The exact date of the mosque's completion remains uncertain. Inscriptions within the mosque mention the year 1616, but the scholar Godfrey Goodwin noted that the last accounting reports for the construction were signed not by Ahmed I but by his successor, Mustafa I — suggesting that Ahmed died before the final completion of his greatest project.

Ahmed was buried in a mausoleum on the north side of the mosque, alongside his consort Kösem Sultan and several of their children. Three of his sons would later become sultan: Osman II, Murad IV, and Ibrahim.

Despite the controversy that surrounded its construction, the mosque's grandeur and the elaborate public ceremonies Ahmed organised to celebrate it eventually won over public opinion. It became one of the most popular mosques in the city — and remains so four centuries later.

Through the Centuries

The mosque has weathered fire, earthquake, neglect, and restoration.

1826: The retiring rooms of the imperial pavilion served as the headquarters of the Grand Vizier during the suppression of the Janissary Corps.

1883: Much of the mosque's original painted interior decoration was replaced with new stencilled paintwork, some of which altered the original colour scheme.

1912: A major fire damaged or destroyed several of the outlying structures of the mosque complex, which were subsequently restored.

1985: The Blue Mosque was inscribed on the UNESCO World Heritage List as part of the "Historic Areas of Istanbul."

2006: Pope Benedict XVI visited the mosque on 30 November, accompanied by the Mufti of Istanbul, Mustafa Çağrıcı, and the mosque's imam, Emrullah Hatipoğlu. It was the second papal visit in history to a Muslim place of worship.

2013–2015: Preparatory restoration work revealed that the mosque's northwest minaret had shifted 5 centimetres over time, posing a potential structural threat. Reconstruction and repair of the minaret were carried out.

2018–2023: A comprehensive restoration of the entire mosque was undertaken, the most significant in its history. The work was completed in April 2023, and the mosque's interior is now fully accessible to visitors once again.

Why "Blue Mosque"?

The name "Blue Mosque" is primarily a Western invention. Turkish speakers have always known it simply as Sultanahmet Camii — the Sultan Ahmed Mosque.

The popular English name derives from the dominant colour of the interior: the blue İznik tiles lining the lower walls, combined with the blue-painted floral motifs covering nearly three-quarters of the walls above them. Together, they create the luminous blue atmosphere that has captivated Western visitors for centuries.

Inside Turkey, the name carries less weight. But for the millions of international visitors who come to Istanbul each year, the Blue Mosque has become inseparable from the city itself — as much a symbol of Istanbul as the Hagia Sophia across the square.

The Blue Mosque Today

More than four centuries after Sultan Ahmed I broke ground with his golden pickaxe, the Blue Mosque remains a fully functioning house of worship. Five daily prayers are observed, and thousands of worshippers gather for Friday congregational prayers each week.

It is also one of Istanbul's most visited landmarks, attracting millions of tourists annually. Entry is free, as it has been since the day it opened — a reflection of the Ottoman tradition that a mosque belongs to the community it serves.

The mosque stands today as a testament to the ambition of a young sultan, the skill of an ageing architect, and the enduring power of the Ottoman artistic tradition. It is, as Cafer Efendi wrote four centuries ago, the culmination of a life's work — and of an empire's faith.