Uthiramerur was ruled by the
Pallavas,
Cholas,
Pandyas,
Sambuvarayas, Vijayanagara Rayas, and Nayaks. As per the inscriptions in the temple, the Pallava king
Nandivarman II (720–796 CE) established the village around 750 CE. It is believed that he donated the village to Vedic Brahmins from
Srivaishanva community. There is a mention about four Pallava kings up to 900 CE. There are a total of 25 inscriptions from the Pallava period. The temple was built by Nandivarman II modeled from the
Vaikuntantha Perumal temple in Kanchipuram. From the inscriptions, it is also learnt that the temple was built according to
Agamic principles by the architect Takshaka of Pataka and with expert consultation with the Agamic tradition in the village. The region and the village went under the sway of
Pandyas during the 13th century and subsequently to the Telugu Chola ruler Vijaya Gandagopala. He renamed the village of Gandagopala Chaturvedhi Managalam. During the later period, the village switched hands to Pallava chieftains, Telugu Cholas, Samburavarayars and finally
Kumara Kampana. The Vijayanagara emperor
Krishnadevaraya (1502–29) made contributions to the Sundaravarada temple, Subhramanya temple and Kailasanatha temple in the village. The village was the scene of war between Lingma and Yachama during the 17th century. The
Carnatic Wars were fought in the nearby
Vandavasi between the
British and the
French during the 18th century. The temple is maintained and administered by the Hindu Religious and Endowment Board of the
Government of Tamil Nadu. Based on the inscriptions, the temple has been addressed by many names, like Vellai Vishnugraham, Vellai Murthi Emperan, Vellaimurthi Alvar, Rajendra Chola Vinnagar Alvar and Sokka Perumal. ==Architecture==