Gokarna

History and legends of Gokarna

← Gokarna

Gokarna's history begins with a story and only later with stone. By legend this is where Ravana lost the Atmalinga, Shiva's own lingam, and the town's name, 'cow's ear', comes from the same cycle of tales. In the 4th century the poet Kalidasa already speaks of the Lord of Gokarna, and the Kadamba kings are credited with the first temple. After them came Vijayanagara, the coastal Nayakas, a queen who ran the pepper trade, and three centuries of salt-making on the estuary.

The legend of the Atmalinga

The story is told in the Puranas and repeated in every lane of the town. Ravana, the king of Lanka, won the Atmalinga from Shiva through penance, on one condition: wherever it first touched the ground, there it would stay. On his way home the gods arranged a false dusk. Ravana stopped for his evening prayers and handed the linga to a Brahmin boy, who was Ganesha in disguise; the boy set it down, and it fixed itself to the earth. Ravana pulled at it with all his strength and could not lift it, and so it is called Mahabaleshwara, the all-powerful.

The tradition adds two details that are still on show. The dent on the head of the black-stone Ganesha in the Maha Ganapati Temple is said to be Ravana's blow. And the pieces Ravana tore away in his struggle are said to have become the Panchalinga shrines along the coast. The name Gokarna, 'cow's ear', is tied to a cow in the same story; another legend places Shiva's emergence from a cow's ear in a small cave near Kudle Beach. These are sacred stories, told as such.

The temple through the centuries

The written record starts early. Kalidasa's Raghuvamsha, a 4th-century Sanskrit poem, has King Raghu worshipping the Lord of Gokarna, and tradition counts Gokarna among the Muktikshetras, places of liberation. Karnataka Tourism calls it one of the seven Muktikshetras of Karnataka and the 'Dakshina Kashi', the Varanasi of the south. The Tevaram hymns of the Tamil Shaiva saints (6th–7th centuries) include it among their sacred sites.

The first structural temple of Mahabaleshwara is attributed to the Kadamba dynasty, which ruled from Banavasi from the 4th century, and to its founder Mayurasharma. Most of the present complex, with its pillared halls, belongs to the Vijayanagara period (14th–16th centuries), when kings such as Harihara I and Bukka Raya I granted land to the temple. After Vijayanagara fell, the Nayakas of Keladi and of Sonda kept up the endowments. In 1676 the English traveller John Fryer came at Maha Shivaratri and described the festival at length.

The Pepper Queen and Mirjan Fort

In the 16th century this stretch of coast belonged to Rani Chennabhairadevi of Gersoppa, a ruler under Vijayanagara who held power for about 54 years. Portuguese traders called her the Pepper Queen for the spice that left through her ports. Mirjan Fort, a laterite fort with a moat about 21–22 km from Gokarna, just off NH-66 north of Kumta, is tied to her name, though who built it is disputed: other versions credit a Nawayath sultanate as early as the 1200s, or the Bijapur noble Sharif-ul-Mulk, with the Archaeological Survey of India dating the building to 1608–1640. The ASI excavated the site in 2000–01 and found laterite structures, a water tank, Chinese porcelain and a Portuguese gold coin of 1652.

Salt on the estuary, and the temple today

South of town, on the Aghanashini estuary, salt has been made by hand at Sanikatta since 1720, which makes it the oldest salt village in Karnataka. Couples of the Agera community still work the pans under a cooperative that has run them since 1952, and the brown crystals dry in rows visible from the Kumta road.

The temple's own recent history is a legal one. In 2008 the Karnataka government handed its management to the Ramachandrapura Math; the High Court quashed that decision in 2018, and in 2021 the Supreme Court, as an interim arrangement until it decides the appeal, placed the temple under an overseeing committee chaired by retired Supreme Court judge B. N. Srikrishna, with orders to adhere to all its traditions. Karnataka Tourism describes the temple as managed by this committee.

FAQ

What is the history of the Gokarna Mahabaleshwar Temple?

The first structural temple is attributed to the Kadamba king Mayurasharma in the 4th century; most of today's complex dates from the Vijayanagara period, with later endowments from the Keladi and Sonda Nayakas.

What is the story of Ravana and the Atmalinga?

By legend Ravana won Shiva's Atmalinga on condition it would stay wherever it touched the ground; Ganesha, disguised as a boy, set it down at Gokarna, and Ravana could not lift it again.

Why is Gokarna called Dakshina Kashi?

Karnataka Tourism calls it Dakshina Kashi, the Varanasi of the south, for its sanctity; like Kashi it is a place of liberation (Muktikshetra) where Hindus perform last rites for the dead.

What does the name Gokarna mean?

'Cow's ear'. Legend ties it to a cow in the Atmalinga story, and to Shiva emerging from a cow's ear in a cave near Kudle Beach.

Can we touch the lingam in Gokarna?

Karnataka Tourism describes Sparsha Darshan: devotees enter the inner sanctum and touch the Atmalinga, which sits inside a square pedestal with only its top showing through a small opening. Non-Hindus are generally not allowed into the sanctum; the priests decide.

Sources (7)
  1. Mahabaleshwar Temple, Gokarna, Wikipedia
  2. Mahabaleshwar Temple, Gokarna, Karnataka Tourism
  3. Gokarna, Karnataka, Wikipedia
  4. Gokarna, Karnataka Tourism
  5. Mirjan Fort, Wikipedia
  6. Supreme Court of India, order of 19 April 2021 (Civil Appeal, Ramachandrapura Math)
  7. SC appoints committee to manage Gokarna Mahabaleshwara temple, Deccan Herald

Facts checked: 15 October 2026. Prices and hours are approximate; check locally.

Gokarna in the India GO app

The full catalogue, hidden spots and districts on the map, plus “nearby” mode.

Open in India GO
India GO: your pocket guide to India

35 cities, one map with every place, the festival calendar, the 90/180 visa calculator and offline mode.

Point your phone's camera here