As per Hindu legend, during the churning of the Ocean of milk, Vishnu instructed his consort Lakshmi to reach the hermitage of Sage Bhrigu. The sage was doing penance to attain a girl child and accepted the girl Lakshmi. the presiding deity, Madhava Perumal is believed to have married goddess Amrithavalli, the daughter of sage Bhrigu and thus attained the name Kalyana Perumal.