In the Hindu epic Ramayana, Surasa is one of the 12 daughters of Daksha, who are married to the sage Kashyapa. She became the mother of the nagas, while her co-wife and sister Kadru gave birth to uragas, another class of snakes. Vasuki, Takshaka, Airavata and other sons of Surasa are described to live in Bhogavati. The epic Mahabharata describes her being born from the wrath of Krodhavasha, another wife of Kashyapa. Surasa has three daughters: Anala, Ruha and Virudha. The serpents descend from the daughters of Surasa. She is thus called the mother of nagas and also cranes; another snake race Pannagas descends from Kadru. The Matsya Purana and the Vishnu Purana describes Surasa as one of 13 wives of Kashyapa and daughters of Daksha. The Vishnu Purana says that she gave birth to a thousand multi-hooded serpents, who fly in the sky; while Kadru also gives birth to a thousand snakes. As the Matsya Purana, she is the mother of all quadrupeds, except cows; the serpents are described as Kadru's children. The Bhagavata Purana portrays her the mother of rakshasas. The Vayu Purana and Padma Purana lists do not mention her as a wife of Kashyapa; and Anayush or Danayush take her position as mother of snakes. The Devi Bhagavata Purana mentions that Rohini as Surasa's incarnation; his son Balarama was incarnation of the nagaShesha, Surasa's son. As per the Matsya Purana, when the god Shiva as Tripurantaka sets off to the three demon cities, various deities aid him. Surasa and other goddesses become his arrows and spears. When drops of the demonAndhaka blood multiplying into many demons, Surasa and other mother goddesses called matrikas aid Shiva to slay the demon, by drinking the blood.
Surasa's encounter with Lord Hanuman in the Sundara Kanda Book of the Ramayana and its retellings, is the most popular tale related to Surasa. Hanuman, flies over the ocean to Lanka in search of his master Rama's kidnapped wife Sita. When Hanuman leaves from land, a mountain Mainaka appears in Hanuman's path, for him to rest but Hanuman considering it as an obstacle flies ahead. The gods, gandharvas and sages call Surasa, the mother of the nagas, and request her to assume a terrible rakshasi form to test Hanuman. The reasons for her being called to test Hanuman as well as the abilities to be tested, differ in various Ramayana tellings. The Ramacharitamanas suggests that the test was meant to prove his greatness and establish that he is ideally suited for the task assigned to him. Conversely, the Adhyatma Ramayana says that the gods do not trust Hanuman's strengths; however both agree that the gods want to test Hanuman's strength and thinking power. The original Ramayana states that his strength and valour are to be tested and does not state the reasons. Other texts find a middle path where though the gods are confident of Hanuman's abilities, they wish to "sharpen" them or warn him of impending dangers. Surasa consents and obstructs Hanuman's path in the sea. She has solar imagery, with “yellow eyes and a pair of jaws fanged and gaping” and the size of a mountain. She declares that Hanuman is the food provided to her by the gods and tries to eat him. Hanuman explains his mission to track Sita and requests her to let him go, and promises to return to enter her mouth, in accordance to Sama and Dana part of the Sāma, Dāna, Bheda, Danda philosophy. She tells him that he can pass only through her mouth, as per a boon given to her. Hanuman counters her by challenging to open her mouth wide enough to eat him. He starts expanding his form and becoming larger; Surasa also expands her jaws so she can devour Hanuman; the contest is interpreted as danda. Finally when Surasa's mouth expands to a 100yojanas, Hanuman suddenly assumes a tiny form and enters her mouth and leaves it, before she can close it. In a variant, Hanuman enters Surasa's mouth and leaves through her ear. Thus, Hanuman respects Surasa's vow as well as saves his life. He salutes her and addresses her as Dakshayani. Impressed by Hanuman's "ingenuity and courage", Surasa assumes her true form and blesses Hanuman. In a version, she reveals the purpose of her mission, being the orders of the gods and declares that the success of her mission, revealing Hanuman's intellect and strength. Hanuman recalls his adventures, including the Surasa encounter, to Rama after he returns from Lanka. Surasa is one of the three women who encounter Hanuman on his journey to Lanka; the other two are the rakshasi Simhika and Lankini, the guardian goddess of Lanka. The heavenly Surasa represents the elementakasha, while Simhika and Lankini represents water and earth respectively. As per another interpretation, the trio represents the maya related to the three gunas. Surasa allegorically stands for sattvikamaya, the purest form of illusion that needs to be tamed but still respected. The three women also denote a challenge to Hanuman's celibacy. "Eroticism and Hanuman's dispassionate visual consumption of women as sexual objects" is a recurring theme in the epic. According to J. C. Jhala, the Surasa encounter is a later interpolation to the Ramayana as it resembles the Simhika episode to a great extent. It is missing from early adaptations of Rama's story in the Mahabharata and the Agni Purana. However Goldmans suggest that the theory is flawed and highly questionable and retain it in their critical edition of the Ramayana.