The Virupaksha Temple at Hampi in Karnataka is the principal living temple of the wider Hampi UNESCO World Heritage Site, dedicated to Shiva as Virupaksha (the “oblique-eyed” form, husband of the local goddess Pampa). The temple is older than the Vijayanagara Empire that adopted Hampi as its capital in 1336 CE; the earliest portions of the current structure date to the 7th-century Chalukya period, with substantial expansion under the Vijayanagara emperors between the 14th and 16th centuries. The eastern gopuram rises around 50 m (165 ft) over nine tiers. The temple survived the catastrophic 1565 sack of Vijayanagara by the Deccan Sultanates that destroyed most of Hampi, and is the only temple in Hampi to have remained in continuous worship since. Opening hours are 5:00 AM to 1:00 PM and 5:00 PM to 9:00 PM.
Why Hampi was chosen as the Vijayanagara capital
The Vijayanagara Empire was founded in 1336 CE by the brothers Harihara and Bukka, originally officers of the Hoysala administration who turned to organising Hindu resistance to the Delhi Sultanate’s southward push. The chosen capital site was Pampakshetra (the field of Pampa), on the south bank of the Tungabhadra river. The location had three advantages: a natural fortress of granite boulders, a river providing year-round water and forming a natural northern moat, and an existing major temple to Virupaksha-Pampa around which a royal city could organise its dharmic legitimacy. The Virupaksha Temple was therefore the religious anchor of the new imperial capital from its founding.
The temple before Vijayanagara
Before 1336 the Virupaksha Temple was a smaller Shaiva shrine, possibly Chalukyan in the 7th century and rebuilt under the Hoysala dynasty in the 11th and 12th centuries. The local goddess Pampa, originally an indigenous folk deity associated with the river, was integrated into the Shaiva mythology as the daughter of Brahma who performed tapas to win Shiva as her husband, with the marriage celebrated annually on the eighth day of Chaitra (March-April), the Phalapuja festival. The pre-Vijayanagara temple was modest; the monumental gopurams and the expanded courtyards are entirely Vijayanagara-period additions.
Krishnadevaraya’s pillared hall
The most ornate single addition is the Ranga Mandapa, the central pillared hall, commissioned in 1510 CE by Krishnadevaraya (reigned 1509–1529) on the day of his coronation. The 38-pillar hall features composite pillars combining a central yali (mythical lion-horse) figure with subsidiary columns, carved in the high Vijayanagara style. The ceiling has a painted programme depicting Shaiva and Vaishnava narratives, including a panel of Krishnadevaraya himself with his queens making offerings at Tirumala. The painting was substantially overpainted in the 19th century and the current visible work is in part a Maratha-period restoration.
The pinhole image and the gopuram
One of the temple’s distinctive features is the inverted image of the eastern gopuram visible on the inner wall of an antechamber. A small hole in the western wall acts as a pinhole camera, projecting the upside-down silhouette of the gopuram outside. The effect is visible from late morning when the sun reaches the gopuram at the right angle. The pinhole was either deliberately engineered (the temple architects clearly understood the principle) or noted incidentally and preserved during a renovation. It is the kind of detail that suggests how seriously the Vijayanagara architects took the experiential design of the building.
The 1565 sack and survival
The Battle of Talikota in January 1565 saw the combined forces of the Deccan Sultanates (Bijapur, Ahmadnagar, Golkonda, Bidar) defeat the Vijayanagara army under Aliya Rama Raya. The victorious sultanate forces sacked Vijayanagara for several months, systematically destroying temples, palaces, water structures and markets across the 25 sq km capital. Most Hampi temples were left as ruined shells. The Virupaksha Temple, for reasons that are not fully clear (possibly because it was protected by local communities who continued worship even during the occupation, possibly because it sat in a more defensible position near the river crossing), survived structurally intact and never lost its puja continuity. It is the only Hampi temple to be marked on the UNESCO World Heritage roll as an active religious site rather than a heritage monument.
Lakshmi the temple elephant
Until her death in 2024 at age 56, the Virupaksha Temple’s elephant Lakshmi was among the longest-serving temple elephants in India and a fixture of the visitor experience: she stood at the front mandapa, accepted a one-rupee coin in her trunk and tapped each donor on the head in blessing. She bathed daily in the Tungabhadra at 9:00 AM, a 200 m walk from the temple. Her successor has not yet been installed; the temple has indicated that the practice will continue if an elephant of appropriate temperament can be sourced through the Karnataka Muzrai Department.
The Hampi experience around the temple
For what it’s worth, the right way to read the Virupaksha Temple is in the context of the wider 25 sq km Hampi site, not as a standalone shrine. Walking from the temple east to the Vittala Temple complex (5 km, doable by bicycle or autorickshaw) and seeing the stone chariot, the musical pillars at Vittala, the Lotus Mahal and the elephant stables at the Royal Centre gives the temple its frame. Virupaksha is the only one of these still in worship; the others are ruined but eloquent shells of what the empire was. Doing Virupaksha alone in 30 minutes between bus connections is the most common visitor mistake; a full day at Hampi is the minimum.
Common questions
How do I reach Hampi?
Hospet (now Vijayanagaram) is the nearest railway junction, 13 km south of Hampi. Direct trains run from Bangalore (overnight), Hyderabad and Hubli. Buses and taxis from Hospet take 20–30 minutes to the temple area. The nearest airport is Hubli, 165 km west, or Bangalore, 350 km south. The Karnataka State Tourism Development Corporation runs a daily bus from Bangalore.
When is the best time to visit?
November to February, when the granite landscape is cool and the river is at full flow. April–June is brutally hot; the granite reaches 50 °C at midday. The annual Hampi Utsav (Vijaya Utsav) in early November (1–3 November), organised by the Karnataka government, includes light-and-sound shows over the temple and concerts in the boulder amphitheatres.
Is the temple open to all?
The temple is open to all visitors irrespective of religion. The inner sanctum follows the standard Shaiva agamic restriction (Hindus only); the outer prakaras, the Krishnadevaraya hall and the secondary shrines are open to everyone. Foreign tourists are common and the temple staff are accustomed to them. Footwear is left at the eastern gate; the inner stone floor is hot in summer.
One limitation worth noting
The Hampi UNESCO site is huge and the Virupaksha Temple is the entry point rather than the destination; this article focuses on the temple proper. The wider Hampi monuments (Vittala, the Royal Centre, the Underground Shiva Temple, the Lotus Mahal, Hazara Rama, the Krishna Temple) each deserve their own treatment and are not covered here. Some of the Hampi monuments have changing access status due to ASI restoration; the Hampi Visitor Centre at the bus stand has current closure information.
For wider reading see Virupaksha Temple on Wikipedia and the UNESCO World Heritage listing for the Group of Monuments at Hampi.
