Palani (paɻani or Palni as in British records, is a town and a taluk headquarters in Dindigul district of the western part of Tamil Nadu state in India. It is located about south-east of Coimbatore and north-west of Madurai, from Kodaikanal. The Palani Murugan Temple or Arulmigu Dhandayuthapani Swamy Temple (Thiru Avinankudi), dedicated to Murugan is situated on a hill overlooking the town. The temple is visited by more than 7 million pilgrims each year. As of 2011, the town had a population of 292301 which makes it the second largest town in the district after Dindigul.
The town derives its name from the compounding of two Tamil words palam meaning fruit and nee meaning you, a reference to poet Avvaiyar's song praisingMuruga which forms part of the legend of the Palani Murugan temple. But the actual correct word is பழனி which means place surrounded by fruitful trees. The word கழனி which is similar in name, both gives agricultural meanings, here கழனி means வயல் (field).
References to the place exist in ancient Tamil devotional texts. According to Hindu mythology, "Sage Narada once visited the celestial court of Shiva at Mount Kailash to present to Him a fruit, the jnana-palam (literally, the fruit of knowledge), that held in it the elixir of wisdom. Upon Shiva expressing his intention of dividing the fruit between his two sons, Ganesha and Murugan, the sage counselled against cutting it. He decided to award it to whoever of his two sons first circled the world thrice. Accepting the challenge, Murugan started his journey around the globe on his mount peacock. However, Ganesha, who surmised that the world was no more than his parents Shiva and Shakti combined, circumambulated them". Pleased with their son's discernment, Shiva awarded the fruit to Ganesha. When Murugan returned, he was furious to learn that his efforts had been in vain. He left Kailash and took up his abode in Palani hills in South India. It is believed that Murugan felt the need to get matured from boyhood and hence chose to remain as a hermit and discarded all his robes and ornaments.