King of the Gods
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. Humans, however, proliferate a fourth time. Enraged, Enlil convenes a Council of Deities and gets them to promise not to tell humankind that he plans their total annihilation. Enki does not tell Atrahasis directly, but speaks to him in secret via a reed wall. 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. Upon landing, a sacrifice is made to the gods. Enlil is angry his will has been thwarted yet again, and Enki is named as the culprit. 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. This is one of the oldest of the surviving Middle Eastern deluge myths.