Kalyanasundaresar Temple, Nallur or Thirunallur is a Hindu temple dedicated to the deity Shiva, located in Nallur, in the outskirts of Kumbakonam in Tamil Nadu, India. Shiva is worshiped as Kalyansundaresar and is represented by the lingam. His consort Parvati is depicted as Girisundari. The presiding deity is revered in the 7th century Tamil Saiva canonical work, the Tevaram, written by Tamil saint poets known as the nayanars and classified as Paadal Petra Sthalam. The legend of the temple is associated with sage Agastya and Amaraneethi Nayanar, one of the 63 nayanars, the Tamil Saiva saints. The lingam in the temple is believed to change colours five times during the daytime.
The temple complex has three precincts and houses two gateway towers known as gopurams. All the central shrines of the temple are located in an artificial hillock, while the shrine of Kali is located in the third precinct in the basement. The original masonry structure was built during the Chola dynasty in the 9th century, while later expansions are attributed to Vijayanagar rulers of the Sangama Dynasty (1336–1485 CE), the Saluva Dynasty, and the Tuluva Dynasty (1491–1570 CE). The temple has six daily rituals at various times, from 5:30 a.m. to 10 p.m., and twelve yearly festivals on its calendar. Devotees are blessed with Sadari, a practice followed only in Vishnu temples. The temple has been maintained and administered by the Thiruvaduthurai Adheenam since the early 13th century.
The temple is constructed in Dravidian style of architecture. It is classified as Perunkoil (also called Madakkoil), a big temple built on a higher platform of a natural or man-made mounds. Literary evidence is found in the works of Tirugnanasambandhar, who refers the temple as Madakkoil. The temple is located 10 km (6.2 mi) away from Kumbakonam, 6 km (3.7 mi) east of Thirukkarugavur and 30 km (19 mi) south of Thanjavur. The temple has a five-tiered Rajagopuram (gateway tower). The main shrines of the temple are located in an artificial hillock. The images of the presiding deity, Kalyanasundareshwar, in the form of lingam (iconic form of Shiva) in a pedestal, occupies the main sanctum. The second lingam, believed to be installed by sage Agastya is in the sanctum. The walls on the interior of the sanctum have sculptural representations of Shiva and Parvati on the west, Vishnu on the north and Brahma on the south. The shrine of Girisundari Amman, the consort of Kalyanasundareshwar, is located in the first precinct facing west. The temple also has a bronze image of Nataraja, the cosmic dance form of Shiva. Nataraja in the temple is depicted with eight hands and in a standing posture over the head of a demon. The image is considered to be one of the nine dance poses of Shiva, called Nava tandavam. The temple has sculptural and metallic images of Ganapathi (elephant god), sage Agastya and the three Shaiva saints Appar, Sambandar and Sundarar. The temple also has an image of Somaskanda (a representation of Shiva with his consort Uma, and Skanda as a child), which is considered similar to the one present in the Thyagaraja temple in Thiruvarur. The third prakaram downstairs houses a separate shrine for the Hindu god Kali. The temple has a large tank called Saptasagaram, located outside the main entrance. The temple complex is enclosed by granite walls, built around the third precinct.
The 7th century Nayanar saints Sambandar and Appar wrote of the temple in their poetic work, Tevaram. The original masonry and towers date back to the 9th century CE, as seen from an inscription in the structure made by Chola kings. The Chola kings ruled over the region for more than four centuries, from 850 CE to 1280 CE, and were temple patrons. The temple complex dates from the time of the 10th century AD Medieval Chola king Uttama Chola whose inscriptions are found in its walls. An inscription dated to the fifteenth year of Raja Raja Chola makes a reference to “Panchavanmahadevi chaturvedimanagalam”, which is another name for Nallur. There are also inscription by Later Chola kings and by Hoysala monarchs. The inscriptions from the Chola kings record various gifts like land, sheep, cow and oil to the temple commemorating various victories of the dynasty. There are lot of inscriptions from the Sangama Dynasty (1336–1485 CE), Saluva Dynasty, and Tuluva Dynasty (1491–1570 CE) of the Vijayanagara Empire, reflecting gifts to the temple from their rulers. The majority of the gift related inscriptions are for land endowments, followed by goods, cash endowments, cows and oil for lighting lamps. The temple has been maintained by the Thiruvaduthurai Adheenam from the early part of the 13th century.
According to the Hindu legend, the god Shiva sent the sage Agastya to this place to balance the weight of the deities attending his marriage with Parvati. At the spot where the temple now stands, Agastya witnessed the marriage of Shiva and Parvati. The sage installed a lingam (symbol of Shiva) behind the main lingam to worship Shiva. As per another legend, one of the 63 nayanars, Amaraneedi Nayanar, spent his life supplying loincloths to the worshipers of Shiva. Shiva wanted to test his devotion and came to him, disguised as a Brahmin. The Brahmin deposited his loin-cloth in the custody of Amaraneethi, which was lost by a divine trick. The Brahmin demanded equal weight in gold as a replacement for his loincloth. The Brahmin placed another loincloth on one side of a scale pan, and Amaraneedi deposited all his wealth on the other side, but it did not balance. Finally, he submitted himself and his wife on the scale pan. Shiva was pleased by the devotion of the nayanar and bestowed him with all his wishes.