Origin/History :-
The temple is believed to have existed before the 7th century, as evidenced by hymns sung by Thirugnanasambandar in praise of Lord Shiva at this site.
- Construction and Renovations:
Initially constructed as a simple temple, it was later reconstructed into a stone temple by the Chozha dynasty. The temple underwent further expansions and renovations by the Pandya and Vijayanagara Nayaka rulers.
Puranic Significance :-
According to legend, when all the celestial beings gathered at Kailash to witness the sacred marriage of Shiva and Parvati, the earth tilted towards the north due to the weight of their presence. To restore balance, Lord Shiva instructed the sage Agastya to journey southward. Agastya, revered for his greatness, was equivalent to all the celestial beings, and as soon as he moved south, the earth regained its balance.
Desiring to witness the divine wedding, Agastya sought a boon from Lord Shiva, requesting that he be granted a vision of the sacred marriage whenever he wished. Lord Shiva graciously accepted his request. As a result, Agastya was blessed with the opportunity to witness the divine marriage at various locations in South India, with this temple being one of the significant sites where he experienced this darshan.
Tradition holds that the Shiva Linga in this temple was installed by Sage Agastya, leading to the deity being referred to as Agastheeswarar. It is also believed that Sage Agastya established his hermitage here and trekked daily to Vedaranyam. Due to his presence and influence, the place came to be known as Agathiyampalli.