 The temple is counted as one of the five temples built and worshipped by Pandavas from Mahabharatha.Earliest references to this temple appear in the poems and hymns composed by the greatest of Alvar saints - Nammalvar, in circa 800 AD.Stone inscriptions in the temple date it back to the Second Chera Empire (800 - 1102 AD).