The Epic of Gilgamesh survives in its most complete form as the "Standard Babylonian" version, compiled onto twelve clay tablets and traditionally attributed to the scholar-priest Sin-leqi-unninni, working sometime between 1300 and 1000 BCE. It draws on independent Sumerian poems about Gilgamesh composed as early as 2100 BCE, meaning the epic's literary roots reach back well over four thousand years — making it, by a considerable margin, the oldest substantial narrative work known to survive from any civilisation.
The story opens with Gilgamesh as an oppressive king of Uruk, so overbearing that the gods create Enkidu — a wild man raised among animals — specifically to challenge and humble him. After a violent wrestling match ends in a draw, the two become inseparable friends, and their combined heroism drives much of the epic's early action: a journey to the Cedar Forest to kill the monstrous guardian Humbaba, and Gilgamesh's rejection of the goddess Ishtar's marriage proposal, which provokes her to send the Bull of Heaven against the city.
The gods, angered by the killing of both Humbaba and the Bull, decree that Enkidu must die. His death devastates Gilgamesh and transforms the entire tone of the epic — from a tale of heroic adventure into a meditation on mortality. Terrified by the prospect of his own death, Gilgamesh sets out on a desperate journey to find Utnapishtim, the one human granted eternal life by the gods, hoping to learn the secret of immortality for himself.
He fails. Utnapishtim tells him plainly that death is the fixed lot of humanity, and even a final chance — a plant that restores youth, which Gilgamesh actually finds — is stolen by a serpent while he bathes. Gilgamesh returns to Uruk empty-handed, and the epic closes not with despair but with a quieter form of resolution: he gazes at the great walls of his city, a legacy that will outlast him, and finds in that a different kind of immortality.