Once upon a time, there was a sage named Kuni who meditated by the Saraswati River. An Apsara, a heavenly nymph, cared for him. When the sage achieved enlightenment, the Apsara wanted to go to heaven but needed to marry first. Narada Rishi suggested she marry a sage named Galva. They had 360 daughters together. Unable to care for them all, Galva sought advice from other sages and moved to Thiruvidanthai. There, he worshipped Varaha Murti daily. One day, Vishnu, disguised as a bachelor, visited Galva. Impressed by his wisdom, Galva asked him to marry his daughters. Vishnu agreed and married one daughter each day for a year. Finally, he revealed his true form and merged all the daughters into one, named Akila Valli Nachiyar. Because Vishnu married daily, he earned the name "Nitya Kalyana Perumal," meaning "the Lord who marries every day." The first daughter, Komalavalli, is honoured in a separate shrine in the temple.