This rock cut Shiva temple was built by Mahendravarman I in 7th century C.E.
This temple was renovated and extended by various kings as it is evident from the presence of various inscriptions in Tamil and Grantha characters by Pallavas, Chola and Vijayanagara empires.