Question: how did utnapishtim gain immortality?
Answer: According to the Epic of Gilgamesh, Utnapishtim was the only man to escape death and receive immortality from the gods (his wife was also granted immortality). ... Once the waters receded, Utnapishtim made a sacrifice to the gods and then released the animals back into nature to repopulate the earth.