The origins of the temple are rooted the
Brahma Vaivarta Purana. The great sage
Agastya narrated the tale of
Sarpavaram to other sages in the Nymisha forest. According to the legend, Sage
Kasyapa's wife,
Kadru, gave birth to a thousand serpent sons. When Kadru's trick to deceive her co-wife
Vinata failed due to her sons' disobedience, she cursed them to perish in King
Janamejaya's serpent sacrifice. Ananta, one of Kadru's pious sons, chose to perform penance at Sarpavaram to seek
Lord Vishnu's protection. Lord Vishnu, pleased with Ananta's devotion, appeared and declared that the place would be named "Sarpapura" in his honour, promising that He and His consort
Lakshmi would reside there and would be consecrated there by sage
Narada. == Deities ==