Palayari was once the celebrated secondary capital of the Pallavas. Under the Cholas, it resumed its importance during the Middle Chola period. The Pandyas sacked Palayarai after the defeat of Kulottunga III (1178–1218 CE) in the closing years of the reign and much of the damage here and the absence of niche figures would be ascribable to this sack. Appar and Sambandar knew these sites as "Tiru Arai" (holy city on the river); it was the place where Amarniti Nayanar, one of the sixty-three Saiva saints flourished. The inscriptions of the Pallavas and the Cholas refer to this place by the names Palayarai, Ayirattali or other alternative names after their own titles. The place abounded in temples – Ayirattali literally means “the place of thousand temples”. The Sri Somanadasvami temple, now in a neglected state of architectural merit. It has been equated to a lesser version of the Airavatesvara temple - resembling in plan and other architectural features though isn't as richly ornamented. With no inscriptional material on its walls, it is speculated that the temple belongs to the time of Vikrama Chola, which presumably got embellished or completed by Rajaraja II. In any case, it would definitely be a monument built during 1130 – 1160 CE, some additions and accretions taking place in the subsequent periods. According to Periyapuranam (a Tamil poetic account depicting the lives of the sixty-three Nayanars), the central shrine of the then Shiva temple was obscured by a new superstructure (vimana) put up by the Jainas. Appar caused a new vimana to be built. The extant complex stands on a raised mound, perhaps on the site of an earlier temples constructed in the time of Rajaraja II as the Airavatesvara was also a substitute in stone for an earlier example. References: S.R. Balasubrahmanyam, 1979, pp. 199-203 and M.W. Meister and M.A. Dhaky 1963, pp. 309 - 311.