The epic recounts the extraordinary life of Gilgamesh, the powerful king of Uruk, who is two-thirds divine and one-third human. Initially described as a harsh ruler over his people, the gods intervene by creating Enkidu, a wild man raised among beasts in the wilderness, to serve as his equal and rival. After Enkidu is introduced to human civilization by a temple courtesan, he travels to Uruk where he engages Gilgamesh in a fierce, transformative combat. Instead of destroying one another, the two heroes forge a deep brotherhood and embark on perilous quests together.
The central narrative drive of the epic shifts when the companions travel to the distant cedar forest to slay Humbaba, the terrifying guardian appointed by the god Enlil. Despite warnings from the elders of Uruk, the heroes successfully defeat the monster, marking their dominance over chaos and the natural world. However, their hubris draws the wrath of the gods when Gilgamesh rejects the romantic advances of Ishtar, the goddess of love. In retaliation, Ishtar sends the celestial bull of heaven to destroy Uruk, but Gilgamesh and Enkidu slay the beast, sealing a tragic fate for the latter.
As punishment for killing the bull and Humbaba, the gods decree that Enkidu must die. Enkidu succumbs to a fatal illness after twelve days of suffering, leaving Gilgamesh shattered by the reality of death. Overwhelmed by grief and the sudden terror of his own mortality, Gilgamesh abandons his kingdom to wander the desolate wilderness in search of eternal life. His journey takes him through the dark mountain passes guarded by scorpion-men and across the waters of death to the dwelling of Utnapishtim, the immortal survivor of the great deluge.
Utnapishtim tests Gilgamesh's resolve by challenging him to stay awake for seven days, a feat the exhausted king fails to achieve. Although he is granted a final chance at rejuvenation through a magic thorny plant that restores youth, a cunning serpent steals the treasure while Gilgamesh bathes in a spring. Accepting that physical immortality is reserved solely for the gods, Gilgamesh returns to Uruk empty-handed. He gazes upon the massive walls of his city, realizing that human legacy is preserved not through endless life, but through enduring deeds and the monuments one leaves behind.