Agastya in the Mahabharata
(100) [...] The land was filled with unfleshed, bloodless, marrowless, disembowelled, and disjointed corpses like piles of conch shells. The earth was covered with shattered sacrificial jars, broken offering ladles and scattered agnihotras. Under the oppression of the Kaleyas [demons] the study of the Vedas and the oblation calls had stopped, the practice of sacrificial festivals was lost, and thus the world was left without enterprise.
While men were wasting away in this manner, O lord of men, they ran from fear in all directions to save themselves. Some hid in caves, others behind waterfalls, others were so fearful of death that the fear killed them. There were also proud and heroic bowmen who did their utmost to hunt down the Danavas [demons]; but they could not find them, for they were hidden in the ocean. [...]
(102) [...] After hearing the prayer of the Thirty Gods, Mitravaruna’s son [Agastya] said, “Why have you come, why do you want a boon from me?” The gods replied to the hermit, “We wish you, great-spirited seer, to drink up the ocean. Then we shall kill those foes of the Gods, the Kaleyas [demons] and their followers.” The hermit assented to the request of the Thirty Gods: “I shall do your wish and show great favour to the creatures.”
(103) When they had reached the ocean, the blessed seer Varuni [Agastya] said to the gathering Gods and seers, “Now, for the well-being of the world I shall drink up Varuna’s ocean. Quickly do what you have to do!” [...] when they saw that the great ocean was empty of water, all the Gods rejoiced greatly. They took fine, divine weapons and with cheerful gallantry killed those Danavas [demons]. [...]. (Mahabharata 3(33) 100-103)