According to scholars and historians, the temple was built in the 8th century but its structure was built in the 18th century. It was built by Travancore Maharaja Marthanda Varma. The temple was initially made of wood but later it was made of granite. This temple is one of the 108 pilgrimage sites of Lord Vishnu. It is also called the divine country of India.