After the churning of milky ocean, sage Durvasa was upset due his own wrathful nature which led to the whole incidents. He sought advice of his father, lord Shiva who directed Durvasa to lord Brahma for getting the knowledge of Parabrahmam. Brahma advised the same as he did to Samudradeva and asked him to worship the Lord. Durvasa along with 63 disciples reached the Earth and found a suitable place and named it as Mallikavanam (forest of jasmines). Durvasa did tapas beneath jointly growing mango and sacred fig. Later in Treta Yuga, the Lord appeared to the sage. As lord Vishnu appeared, water sprouts rushed out of earth and Durvasa washed the Lord's feet with it. Pleased with the sage's devotion, Vishnu promised to be present at the spot forever on a condition that the sage should do his service whenever he appear in a form that can be visualized by all. (The spot where Durvasa meditated is south-west to the temple and the water sprouts turned into a tank, Jalavanthy)