eponymous hero, Gilgamesh, the king of the city of Uruk, goes on Hanging Gardens of Babylon Code of Hammurabi Epic of Gilgamesh in Cuneiform a quest to find immortality after he and Enkidu, his companion, perform deeds that anger the gods, resulting in Enkidu's death. Despite going through many trials, Gilgamesh loses his opportunity for physical immortality; however, he becomes immortal in the memory of Uruk and its walls