Page "Enki" Paragraph 39
According to Sumerian mythology, Enki also assisted humanity to survive the Deluge designed to kill them.
In the later Legend of Atrahasis, Enlil, the king of the gods, sets out to eliminate humanity, whose noise is disturbing his rest.
He successively sends drought, famine and plague to eliminate humanity, but Enki thwarts his half-brother's plans by teaching Atrahasis how to counter these threats.
Each time, Atrahasis asks the population to abandon worship of all gods, except the one responsible for the calamity, and this seems to shame them into relenting.
Enraged, Enlil convenes a Council of Deities and gets them to promise not to tell humankind that he plans their total annihilation.
He instructs Atrahasis to build a boat in order to rescue his family and other living creatures from the coming deluge.
After the seven day Deluge, the flood hero frees a swallow, a raven and a dove in an effort to find if the flood waters have receded.
Enki explains that Enlil is unfair to punish the guiltless, and the gods institute measures to ensure that humanity does not become too populous in the future.