This ancient Murugan temple is located at Valliyur, near Nanguneri, near Tirunelveli and Kanyakumari. It has been revered by the Tiruppukazh hymns of Arunagirinathar.
The presiding deity here is Subramaniyar, and the sanctum enshrines an image of Murugan with that of his consort Valli. The temple has a rock cut sanctum – carved out of a hill and several mandapams surrounding it. There are also shrines to Natarajar and Dakshinamurthy here. The Saravanapoikai tank is located adjacent to the hill. The diamond studded Vel held by Subramaniyar is of great beauty.
Legend has it that Indra and Agasthyar worshipped Subramanyar here. Legend also has it that the Saravanapoikai tank was created when Murugan struck his spear to the ground, upon being requested by his consort.
Legend has it that this temple was first discovered by a Pandya King who came here on a hunting expedition after visiting the Perumal temple at Tirukkurunkudi and that the temple was expanded by his descendents. Valliyur was under the governance of Kulasekhara Pandyan of 13th century, who fortified the village.
Giri pradakshinam is considered to be of importance here as in Tiruvannamalai, Kunnakkudi and Palani. Seven worship services are carried out each day. Skanda Sashti is celebrated with great splendour here as are the float festival in the month of Kartikai and the annual festival in the month of Cithirai.