Legends: Mukkunda Cholan built this temple. Kamadhenu the mythological cow meditated upon Shiva to receive his blessings; hence the name Aanilai, and Pasupateeswarar.
Temple: This temple covers an area of 2.65 acre. It has two prakarams. The gopuram is 120 feet high and has several stucco images and a hundred pillared hall. Chola and Pandya inscriptions are found here. There are two images of Ambal here, Sundaravalli and Alankaravalli. The sun's rays illuminate the sanctum for three days in the Tamil month of Pankuni.
Festivals: The annual Bhrammotsavam is celebrated in Panguni; other festivals include the Eripaththa Nayanar utsavam, Navaratri and Arudra Darisanam.