 Originally built by the Pallavas, it was later reconstructed by the Madurai Nayaks and Vijayanagara rulers.The major complex in the temple are believed to be built during the 8th century by the Pandyan Empire.The temple is maintained and administered by the Hindu Religious and Endowment Board of the Government of Tamil Nadu.