As per Hindu legend, the Vaishnava deity, Sarangapani, an incarnation of Hindu god Vishnu, appeared for a sage Hema Rishi, who performed penance in the bank of Potramarai tank. Once sage Bhrigu wanted to meet Vishnu at his residence, Ocean of Milk. The sage did not get the attention of Vishnu and in his anger, he kicked Vishnu on his chest. Mahalakshmi who resides in Vishnu's chest got angered as Vishnu did not show his anger towards the sage. She left Vaikunta and reached earth and took the form of Padmavathy. Vishnu followed her and married her. Padmavathy got her memories and was still angry with Vishnu. To avoid her anger, Vishnu resided in the underground chamber in the temple as Pathala Srinivasa. In the meanwhile, the sage Bhrigu sought his apology and requested Mahalakshmi to be born to him as Komalavalli in his next birth. The sage was born as Hemarishi and performed penance to attain Mahalakshmi as his daughter. Vishnu was pleased by the penance and he wished the sage to get Lakshmi as his daughter. Lakshmi emerged from the Potramarai tank among thousand lotuses and was thus named Komalavalli (the one who emerged from lotus). Vishnu descended to earth as Aravamudhan in a chariot drawn by horses and elephants from his abode Vaikuntam. He stayed in the nearby Someswaran Temple to convince Lakshmi to marry him and the couple eventually got married. The name Sarangapani (one who has the bow in his hand) derives from the Sanskrit word Sarangam meaning bow of Vishnu and pani meaning hand.