The god even Shiva had to begin with
Three cities that could not be taken
Tripurasura, a demon, wins through austerity a boon that makes him formidable: three cities — the tripura of his name — that no ordinary attack can destroy. Secure in them, he turns on the gods and drives them from their places.
The gods go to Shiva. Shiva takes up arms against Tripurasura and marches on the three cities.
A battle that will not turn
Shiva's assault fails. The war goes against him, and the cities stand.
The reason, in this tradition, is an omission rather than a weakness. Shiva went into battle without first invoking Ganesha, the deity who is honoured before any undertaking begins. A campaign begun without him meets obstacles at every step.
Shiva worships Ganesha
Shiva stops and does what he had left undone. He worships Ganesha, at the place that is now Ranjangaon.
Ganesha is pleased and grants him success. Shiva returns to the battle and this time destroys the three cities and Tripurasura with them. He becomes Tripurari, "enemy of Tripura".
The temple
The form of Ganesha that Shiva worshipped is Mahaganapati, the great Ganapati. Shiva is credited with founding the shrine where he had prayed, and the temple at Ranjangaon remembers him as its first worshipper.
What the story explains
The episode gives the temple its deity's name and its lesson: that even Shiva had to begin with Ganesha.
The Maharashtra Tourism department sums up the association in a single line: Ranjangaon is linked to Ganesha aiding Shiva in his battle against Tripurasura. The fuller sequence above — the boon, the failed assault, the forgotten invocation — is widely attributed to the Ganesha Purana, but we have not yet checked it against a translation.
Where this account comes from
- Government: Directorate of Tourism, Government of Maharashtra, Ashtavinayak leaflet (MH-Leaflet-Ashta-Vinayak-Slides), 2024 — Ranjangaon (Shri Mahaganapati) panel maharashtratourism.gov.in · seen 2026-10-09