The temple was originally built by the Pallavas in the 8th century, subsequently expanded by Cholas and later by the Vijayanagara kings in the 15th century [REF].
A Pallava king built the present temple in the eighth century.