Layers of History at Gyanvapi Mosque in Varanasi

Varanasi, India

By the Travel Wiki editorial team

A 17th-Century Mosque Built on a Temple's Foundations

Stand at the rear of the Gyanvapi Mosque in Varanasi and the layers of the city's history stack up in front of you: an ornate stone wall of a Hindu temple, its cusped arches, exterior moldings and toranas now serving as the qibla wall of the mosque, topped by a plain white stucco dome. The architectural historian Diana L. Eck described that wall as "set like a Hindu ornament in the matrix of the mosque." This is not a monument you visit for beauty alone. It is one of the most contested pieces of ground in India, and understanding what you are looking at requires knowing what came before.

The site was originally home to a Vishweshwar temple devoted to Shiva, built in the late 16th century by Todar Mal, a courtier and minister of Akbar, together with Narayana Bhatta, a Brahmin scholar of Banaras. In September 1669, the Mughal emperor Aurangzeb ordered the temple's demolition; the mosque was constructed in about 1678 CE. The temple's plinth was left largely intact to serve as the mosque's courtyard. The mosque was known as the Alamgiri Mosque, after Aurangzeb, before its current name — derived from the adjoining sacred waterbody, Gyan Vapi, the "Well of Knowledge," which likely predated the temple — came into common use.

Both Hindus and Muslims claim the right to the land, and ownership is currently disputed. Hindu worshippers hold that the mosque replaced the original Kashi Vishwanath Temple; in January 2024 the Archaeological Survey of India said its survey appeared to corroborate the belief that the site was originally home to a temple, and in February 2024 a local court ruled that Hindu worshippers could pray in the building's basement. The mosque authorities said they would appeal. You are visiting a live legal and religious question, not a settled ruin.

What You See, and the Rules of Looking

The most striking thing to seek out is the surviving temple fabric. The southern wall of the old temple, with its cusped arches, exterior moldings and toranas, was turned into the mosque's qibla wall; the temple's plinth serves as the courtyard. Look for the visible Hindu motifs and sculptures on the pillars — the ASI survey found the mosque was constructed on the remains of a pre-existing large Hindu temple, and the present structure incorporates architectural components of that temple.

Photography is prohibited. The mosque sits directly adjacent to the Kashi Vishwanath temple in a heavily guarded complex, so expect security and go with patience rather than a sightseeing checklist. Oral accounts indicate that, notwithstanding the desecration, Brahmin priests were allowed to reside in the premises of the mosque and to exert their privileges on issues of Hindu pilgrimage, and the remnants of the temple, especially the plinth, long remained a popular hub for Hindu pilgrims. You are walking through a place that has been continuously used and claimed, not abandoned.

How to Make the Most of a Visit

Because the site is an active place of worship at the centre of a legal dispute, the visit is short but demands attention. Give yourself time to look slowly at the wall and pillars rather than trying to cover ground. Go when you can be quiet and unhurried, and accept that access to parts of the complex may be affected by court orders and security arrangements — in 2022 part of the mosque was sealed by court order, and the Supreme Court subsequently ruled the complex would be protected and prayers would continue in the mosque. Check the current situation before you set out rather than assuming yesterday's arrangements hold.

The highlight not to miss is the qibla wall itself. Stand where you can see the cusped arches and the moldings, and then step to the rear to see the temple wall beneath the white dome. That single view carries the whole story: a grand 16th-century shrine, partially destroyed in 1669 on Aurangzeb's orders, its half-dismantled structure becoming the foundation of the present mosque. Historians attribute political motives rather than pure religious zealotry to the demolition — Catherine Asher notes that the zamindars of Banaras frequently rebelled against Aurangzeb and local Brahmins were often accused of interfering with Islamic teaching, making the demolition a political warning — and scholars also emphasise that Aurangzeb granted protection and patronage to several temples, ghats and maths, including in Banaras, both before and after. Hold those complexities alongside what you see.

What Else Is Close By

The mosque stands directly adjacent to the Kashi Vishwanath Temple, the most famous temple in the city and one of the twelve Jyotirlingas of Shaivism — the natural next stop on any walk through this part of Varanasi. Note that security there is tight and entrance to the main temple can be difficult and is sometimes off-limits to foreigners. Beyond that, the city rewards wandering more than ticking off destinations: Varanasi is a place where the experience is in watching the spectacle of life and death on the river and meandering through the alleys of the old city.

Start With the Wall

Plan your visit around a single deliberate look: the temple wall that became a mosque's qibla wall, and the white dome above it. Read a little of the dispute's history before you go — the 1669 firman, the temple of Todar Mal and Narayana Bhatta, the well that gave the mosque its name — so that what you see resolves into something more than stone. Then go quietly, without a camera, and give the place the attention its history demands.

Sources

  1. Gyanvapi Mosque
  2. Wikivoyage: Varanasi
  3. Hindu prayers begin inside India's Mughal-era mosque after court order
  4. Gyanvapi masjid: India dispute could become a religious flashpoint

About this place

More guides to Varanasi