The Mosque That Was Built to Pay Its Own Way

A Mughal doctor-governor's tiled mosque, funded by shop and bathhouse rents, and the shops that nearly buried it.

📍 Lahore, Punjab

ArchitectureHistoryArt

Listen to this story, narrated, in the TourPods app.

Your first 20 stories are free — no credit card required.

Download free

Key facts

  • Ilam-ud-Din Ansari was a physician whose medical skill won him the patronage of the Mughal emperor Shah Jahan.
  • He served as governor (subahdar) of Lahore Subah (Punjab) from 1631 to 1639 and was known by the royal title Wazir Khan.
  • Construction of the Wazir Khan Mosque began around 1634 and was completed in 1641, during Shah Jahan's reign.
  • Wazir Khan built the mosque on property near Delhi Gate to enclose the tomb of the Sufi saint Syed Muhammad Ishaq Gazruni, known as Miran Badshah, whose tomb lies in a crypt beneath the courtyard.
  • The mosque stands on the south side of the Shahi Guzargah, the royal road Mughal nobles used to reach Lahore Fort, about 260 meters west of Delhi Gate.
  • The complex included a row of shops for calligraphers and bookbinders, today called the Calligraphers' Bazaar; rents from shops and from the nearby Shahi Hammam were meant to fund the mosque's upkeep as a waqf (endowment).
  • Wazir Khan built the Shahi Hammam in 1635, steps from Delhi Gate, as a waqf to maintain the mosque; it is the last remaining Mughal-era hammam in Lahore.
  • Wazir Khan employed artisans from Chiniot; the mosque's chief architect is unknown.

Read the story

"To all who turn towards the Qibla in prayer," reads a Persian verse in tile beside the entrance, "may this door remain wide open with prosperity till the day of resurrection." The man who paid for that door had thought hard about the prosperity part.

He was born Ilam-ud-Din Ansari in Chiniot, a physician whose skill won the patronage of the Mughal emperor Shah Jahan. As governor of Lahore, he carried a royal title: Wazir Khan. Around 1634, he began a mosque on his land near Delhi Gate, enclosing the tomb of a Sufi saint, Miran Badshah, who still lies in a crypt beneath the courtyard.

The mosque rose on the Shahi Guzargah, the royal road Mughal nobles traveled toward Lahore Fort. And Wazir Khan built a business plan into it. A row of shops for calligraphers and bookbinders lined the complex, and in 1635 a bathhouse, the Shahi Hammam, went up steps from the gate. Their rents were an endowment, meant to keep the mosque in repair.

That money bought spectacle. Artisans from Chiniot sheathed the walls in kashi-kari, glazed tile in cobalt, cerulean, green, orange and yellow. Inside, frescoes of trees, wine pitchers and platters of fruit evoke Paradise. Four minarets climb 107 feet. Completed in 1641, it became Lahore's main Friday mosque.

But commerce, the thing meant to sustain it, nearly buried it. Illegal shops crowded the square until much of the mosque vanished from view. Beginning in 2012, the Punjab government and the Aga Khan Trust for Culture cleared dozens of buildings from Wazir Khan Chowk, pushed power lines underground and restored the Well of Dina Nath. The trust and the Walled City of Lahore Authority also restored the hammam, uncovering its under-floor heating, work UNESCO recognized in 2016.

Wazir Khan wanted shops to hold his door open. For a time, they nearly closed it. Now the square is clear again, and the door stands wide.

There are more stories where this came from — near you.

TourPods narrates the hidden history, true crime, and local lore of wherever you're standing. Your first 20 stories are free.

Download TourPods free