According to legend, this rock is the place where Lord Ganesha ran from King Vibishana, after establishing the Ranganathaswamy deity in Srirangam.
The Ganesha temple is much smaller with an access through steep steps carved on the rock and provides views of Trichy, Srirangam and the rivers Kaveri and Kollidam.
Lord Rama in the epic of Ramayana rescues his wife Sita, who was kidnapped and held by Ravana, with the help of Sugriva and Hanuman defeated him.
Ultimately Rama wins the war and as a token of love, he gives Vibishana a vigraham (idol for worship) of Lord Ranganatha, a form of Vishnu.
Vibhishana, while on his back to his Kingdom, goes through Trichy, and wanted to take his bath in the river Kaveri and do his daily rituals.
Vibishana immediately apologizes and the Lord gives him his blessings, reveals that the idol is destined to remain in Srirangam and sends him off to Lanka.