Ucchi Pillayar Temple is a 7th-century-CE Hindu temple, one dedicated to Lord Ganesha located a top of Rock Fort, Trichy, Tamil Nadu, India. According to legend, this rock is the place where Lord Ganesha ran from King Vibishana, after establishing the Ranganathaswamy deity in Srirangam. Tiruchirapalli Rock Fort is also fondly called as Malaikottai in Tamil.
The Rock Fort temple stands 83 metres (272 ft) tall perched atop a rock. The smooth rock was first cut by the Pallavas but it was the Nayaks of Madurai who completed both the temples under the Vijayanagara empire.
The temple is situated at the top of the rock. 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. Due to its ancient architecture, created by the Pallavas, the temple is maintained by the Archaeological department of India.