The temple finds mention in Brahmanda Purana as Patalika Vanam and Uttama Kshetram. As per Hindu legend, Brahma boasted about his long life. A sage called Romas wanted to suppress Brahma's thought and he did severe penance at this place. Vishnu was pleased by his devotion, and Vishnu appeared before him. On further request from the sage, Vishnu appeared again as Trivikrama. He gave a boon to the sage that he would get a life longer than that of Brahma and blessed that with each falling hair of the sage, Brahma would lose one year.