 The temple is originally believed to be built by the Pandyas, with later additions by the Vijayanagar and Madurai Nayak kings who commissioned pillared halls and major shrines of the temple during the 16th century.Koodal Azhagar is believed to have appeared to slay the demon Somuka who abducted the four "Vedas".The temple follows Thenkalai tradition of worship.