history
The present temple was built by Shilahara kings who were native to Karnataka. Apart from the legend, the name might have originated from the ancient name of the town, which was "Koppam". The town witnessed two major battles. The first one took place in 1058 CE between Chalukya king Ahavamalla and Chola king Rajendra. The Chola king Rajadhiraja was killed during the battle, and the coronation of the second king, Rajendra Chola took place right on the battlefield.
There are about a dozen inscriptions on the inside and outside of this temple, out of which only a couple of inscriptions are in good condition now. These inscriptions reveal the names of few kings and their officers. All these inscriptions except one are in Kannada language and script. The only Devanagari inscription in Sanskrit language is by Singhan-II and is located on the outer wall near South entrance of the temple.