Agnipureeswarar Temple also called Thirupugalur temple) in Thirupugalur, a village in Nagapattinam district in the South Indian state of Tamil Nadu, is dedicated to the Hindu god Shiva. Constructed in the Tamil style of architecture, the temple is believed to have been built during the Cholas period in the 10th century. Shiva is worshipped as Agnipureeswarar and his consort Parvathi as Karundar Kuzhali. The presiding deity is revered in the 7th century Tamil Saiva canonical work, the Tevaram, written by Tamil saint poets known as the Nayanmars and classified as Paadal Petra Sthalam. A granite wall surrounds the temple, enclosing all its shrines. The temple has a five-tiered Rajagopurams, the gateway tower. As per Hindu legend and the Sthalapurana, Shiva was worshipped by Agni, the fire god at this place and the presiding deity came to be known as Agnipureeswarar and the temple tank is called Agni theertham