The legend is that Airavata, the white elephant of Indra, worshipped Lord Siva in this temple; so did also the King of Death, Yama. Tradition has it that the presiding deity Airavateswarar cured Yama himself (the God of Death) who was suffering under a Rishi's curse from a burning sensation all over the body. Yama took a bath in the sacred tank and was rid of the burning sensation. Since then the tank is known as Yamateertham. It gets its supply of fresh water from the river Kaveri and is 228 feet in width. Pilgrims make a point to bathe in the tank. In the recent past Raja Raja Chola worshipped the Siva Lingam in this temple. Volume II of the South Indian Temple Inscriptions deals with a number of endowments of the Pandya Kings also (see pages 556 to 562). On the temple walls these inscriptions are given, from which it is seen that the temple was known in those days as Raja Rajeswararen and Raja Rajapuram. Two such inscriptions are copied here.