The all-powerful Asuras, Tarakan, Kamalatchan and Vithvan Mali built palaces in gold, silver and iron respectively and were troubling the Devas more frequently.
The Devas along with Vishu and Brahma worshiped Shiva. Shiva personified sky as the roof, ground as base, Surya & Chandra as Wheels, Four Vedas as horses, Merumalai as the Bow, Vasuki as the string and Thirumal himself as the arrow. Brahma was steering the Chariot.
Vinaya grew angry as he was not a part of the war and broke the caster bolt of the chariot.
Shiva gave good deeds to Vinayagar and went ahead winning the Asuras at Thirvathikai. Since the Achu (caster bolt) was broken into pieces (Pakkam), this place is called Achirupakkam.
During Tripurasamharam, the killing of Tripurantaka, Shiva forgot to worship Ganesha before setting out for the battle. He realized this and came back to worship Ganesha and went ahead to vanquish the demon.
The same legend is associated with Thiruvathigai Veerattaneswarar Temple and Thiruvirkolam Sri Tripuranthaka Swami temple.
As per another legend, sages Gautama and Kanva worshiped Shiva at this place. There is another legend which indicates that a Pandya king found a golden iguana which disappeared under a tree. While digging under the tree, he found a linga. He requested sage Trinedhrathari to build a temple who built two sanctums, one for Uamiyatchivarar and other for Aatcheesvarar.
Imitated amphorae have been found in the temple in many excavations in the same context of the imported variety. They are found to be used continuously in Tamil Nadu in 6-7th century mainly in Thondai mandalam, which flourished as a prominent political centre under the Pallavas after the Sangam period.
The inscriptions are dated to the period of Kulothunga Chola I (1070-1120 CE) where Shiva is referred as Accukkontu Aruliya Tevar. The inscriptions talk of generic contributions of land, gold and sheep to the temple.
Acharapakkam is located on the 79th km of Trichy-Chennai National Highway (NH45) and 10 km from Maduranthakam. Acharapakkam has its own railhead on the Trichy-Chennai railway line. The temple covers an area of around 1.21 acres (0.49 ha).
The temple has a five tiered raja gopuram and a tank in front of it. All the shrines of the temple are enshrined in concentric rectangular walls, with the shrine of Aksheeswaraswamy being the most prominent.
The sanctum is set axial to the flagstaff and gopuram. The image of the consort, Sundaranayaki is enshrined in a west facing shrine. There are images of Saraswati, Lakshmi, Saptamatrika and Ayyappa in the first precinct around the sanctum.
It is believed that there was a well in front of the sanctum, which can be seen during the times of monsoon even during modern times. The sculptural representation of Karaikkal Ammaiyar walking with her hands and the hunter Kannapa Nayanar sculpted under the image of Somaskanda are noteworthy.