The temple is originally believed to be built by the Cholas - Parantaka I and was called Setangi Vinnagar. There are inscriptions dated 1048, the 30th regnal year of Rajaraja I, mentioning teaching Rig Veda, Yajur Veda, Chandogasama, Talavakrasama, Apurva, Vajnasaneya, Bodhayaniya Sathashatandha Sutra and explanations of sastras and epics like Ramayana are also found in the temple. There are also mention of the remuneration to the teachers and students in the form of paddy. There are inscriptions in the temple from the period of Rajadhiraja Chola indicating recital of Tiruvaimozhi, the famous works of the Azhwar saint Nammazhwar. The regions changed hands from British to French colonial Empire during the 17th century. Most temples in the place were destroyed during the French invasion, but the temple was spared.
Architecture
It is located in Thirubuvanai, a village, located, in the outskirts of Puducherry in the Puducherry - Villupuram highway. Like the temples during the medieval Chola period, the temple has a flat gateway tower. The sanctum houses the image of Varadaraja Perumal in seated posture is made of granite sporting four arms. Two of his arms hold the conch and Chakra, while the other two sport Abayamudra and Kadahasta. The images of Sridevi and Bhudevi are located on either of his side. The Ardha mandapa is guarded by two Dwarapalas on either sides. There is a separate shrine of Andal in the second precinct, which also houses the festival image. The vimana of the temple is spherical and resembles the ones in Viralur Boomeswar temple and Kowkishewar temple at Kanchipuram. The four sides of the vimansa houses the image of devakostas in all four directions. The temple has many legends sculpted on its walls, the notable being the legend of Krishna stealing the dresses of Gopikas. A boat representation in the temple has reliefs from Ramayana.
Festival and religious importance
The temple is maintained and administered by the Archaeological Survey of India as a protected monument. Though it is an archaeological temple, it is active is worship practises and follows Vaikhanasa Agama. The temple priests perform the pooja during festivals and on a daily basis. As at other Vishnu temples of Tamil Nadu, the priests belong to the Vaishnavaite community, a Brahmin sub-caste. The temple rituals are performed four times a day: Ushathkalam at 7 a.m., Uchikalam at 12:00 p.m., Sayarakshai at 6:00 p.m., and Ardha Jamam at 8:00 p.m. Each ritual has three steps: alangaram, neivethanam and deepa aradanai for the presiding deity. During the worship, religious instructions in the Vedas are recited by priests. There are weekly, monthly and fortnightly rituals performed in the temple. The temple has many festivals as indicated in the inscriptions in the temple. Tamil New year during the Tamil month of Chittirai, Vaikuntha Ekadashi during Margazhi, Sankaranthi during Thai followed by Theerthavari in Pamba river are the major festivals celebrated in the temple.