The town Agasthiyanpalli is named after Agastheeswarar, the presiding deity of the Agastheeswarar Temple, a Hindu temple dedicated to Shiva.
According to legend, all the Devas were assembled in Kailash to witness the sacred marriage of Shiva and Parvathi and on account of it, the earth was tilted towards North.