The oldest surviving work of literature is not a hymn or a law code. It is a story about a man who watched his best friend die and refused to accept the same fate. The Epic of Gilgamesh is a Mesopotamian poem cycle, first composed around 2100 BCE, that follows the semi-divine king of Uruk on his quest for immortality. It survives on clay tablets written in Akkadian cuneiform, and its most famous episode — the flood narrative — predates the biblical story of Noah by at least a millennium.
What the Poem Actually Says

The epic opens with a paradox. Gilgamesh is two-thirds god and one-third human, the strongest and most arrogant ruler Uruk has ever known. He is also a tyrant. The gods hear the complaints of his people and create Enkidu, a wild man who lives among animals, to match Gilgamesh’s strength and humble him.
Enkidu is civilized by a temple prostitute named Shamhat. She sleeps with him for six days and seven nights — the text is explicit about the duration, and afterward the animals flee. Enkidu has crossed a threshold. He can no longer run with the gazelles. He is human now, and he is alone.
He goes to Uruk, fights Gilgamesh in the street, and loses. But the fight becomes a friendship. The two become inseparable. They travel to the Cedar Forest, kill its guardian Humbaba, and return in triumph. Gilgamesh rejects the sexual advances of the goddess Ishtar, who sends the Bull of Heaven to destroy Uruk. They kill the bull instead.
Then Enkidu dies.
The gods decide it. Enkidu dreams of the underworld, a house of dust where the dead eat clay and wear feathers like birds. He curses the door he built, the hunter who found him, the prostitute who made him human. Gilgamesh watches his friend rot for seven days before the corpse begins to smell. He does not sleep. He does not eat. He sits beside the body until a worm falls out of Enkidu’s nostril.
That image breaks him.
When Was It Written? The Question of the Tablets
The earliest known Gilgamesh poems date to the Third Dynasty of Ur, roughly 2100 to 2000 BCE. These were five separate Sumerian stories, each centered on a single episode. The unified Akkadian epic that we recognize today was compiled around 1300 to 1000 BCE by a Babylonian scribe named Sîn-lēqi-unninni. His version, called the Standard Babylonian Version, runs approximately 3,000 lines across twelve tablets.
The tablets were excavated from the library of Ashurbanipal in Nineveh (modern-day Mosul, Iraq) in the 1850s. Ashurbanipal was the last great king of the Neo-Assyrian Empire, and he collected cuneiform tablets with the same obsessive drive that later rulers collected gold. His library held 30,000 tablets. The Gilgamesh epic was among them.
The man who first translated the flood tablet was George Smith, a self-taught Assyriologist working at the British Museum. In 1872, he read a paper to the Society of Biblical Archaeology titled “The Chaldean Account of the Deluge.” When he reached the line about a man releasing a dove from a boat, a man in the audience stood up and shouted, “The discoverer of the flood!” Smith had to be helped from the room.
The Flood Story: Older Than the Bible
The eleventh tablet of the Standard Babylonian Version contains the flood narrative. The hero Utnapishtim tells Gilgamesh how the god Ea warned him to build a boat, load it with his family and “the seed of all living creatures,” and survive a storm that drowned the rest of humanity. He sends out a dove, then a swallow, then a raven. The raven does not return. Utnapishtim makes an offering on the mountain, and the gods gather around it “like flies.”
The parallels to the biblical flood are obvious and well-documented. But the Gilgamesh version is older. The Sumerian King List, which predates the epic, already mentions a flood that divided the antediluvian kings from the historical ones. The motif was not invented by the Hebrew scribes. It was inherited.
What the Gilgamesh flood does that the biblical one does not is make the survivor mortal. Utnapishtim and his wife are granted immortality by the gods, but they are also removed from human society. They live at the mouth of the rivers, unreachable. Gilgamesh finds them, hears the story, and still fails the test. He is given a plant that restores youth. A snake eats it while he is bathing. He returns to Uruk empty-handed.
That is the point. The epic is not about a man who almost became immortal. It is about a man who learned to accept mortality.
What the Poem Means: Mortality, Kingship, and the City
The epic’s central argument is that immortality is not available to humans. What is available is legacy. Gilgamesh begins the poem building walls around Uruk. He ends the poem pointing at those walls and telling the boatman Urshanabi to look at them. The walls are his immortality. They will outlast him.
This is a distinctly Mesopotamian idea. The gods created humans to do the work the gods did not want to do: build temples, dig canals, offer sacrifices. A human life was measured by what it produced. Gilgamesh’s journey is a refusal of that limit followed by an acceptance of it.
The poem also explores the relationship between civilization and the wild. Enkidu is the wild. He is grass and animals and freedom. Shamhat makes him human by making him sexual. The epic does not sentimentalize this. Enkidu loses something real when he becomes civilized. But he gains friendship, purpose, and a death that means something. The wild does not mourn. Uruk does.
How the Epic Was Used: Ritual, Education, and Magic
The tablets were not decorative. Scribes copied the epic as a training exercise. Students at Mesopotamian schools, the edubba, learned to write by copying passages from Gilgamesh onto their own clay tablets. We know this because many of the surviving tablets are student copies, full of errors and corrections.
The epic also had ritual uses. Tablet XII, which describes Enkidu’s descent to the underworld, was used in funerary rites. The description of the dead eating dust and wearing feathers was not poetry. It was a warning. Offerings to the dead mattered. Neglect mattered. The underworld was real, and the epic told you what happened there.
Some scholars believe the epic was recited during the akitu festival, the Babylonian New Year celebration. The king would reenact Gilgamesh’s journey to the Cedar Forest, symbolically defeating chaos and reaffirming his right to rule. We cannot prove this. The evidence is circumstantial. But it fits. The epic is, among other things, a text about kingship.
How It Compares to Other Ancient Epics
The Epic of Gilgamesh shares its structure with later heroic poems: a journey, a descent, a return. Homer’s Odyssey follows the same arc. Odysseus travels to the underworld, speaks with the dead, and returns to Ithaca. Gilgamesh travels to Utnapishtim, hears the flood story, and returns to Uruk. The difference is that Odysseus succeeds. Gilgamesh fails.
The Iliad is closer in tone. Achilles loses Patroclus, rages, and accepts his own death. Gilgamesh loses Enkidu, rages, and accepts his own death. Both poems are about friendship and mortality. The Iliad was composed around 750 BCE, roughly five centuries after the earliest Gilgamesh poems. The influence is possible but unproven.
The Aeneid is different. Virgil’s hero is pious. He does what the gods tell him. Gilgamesh does not. He insults Ishtar, kills her bull, and forces the gods to kill Enkidu as punishment. The Mesopotamian epic is not a story about obedience. It is a story about pushing against limits until the limits push back.
Common Misconceptions
The epic is not the oldest story ever told. It is the oldest written story we have found. Oral traditions are older. The flood myth itself likely existed in oral form for centuries before anyone wrote it down.
Gilgamesh is not a hero in the modern sense. He is arrogant, violent, and sexually predatory. The poem does not excuse this. It shows the consequences. Enkidu’s death is a direct result of Gilgamesh’s actions.
The epic does not have a happy ending. Gilgamesh returns to Uruk with nothing but the knowledge that he will die. The poem ends with him looking at the walls. That is the ending. There is no resurrection, no reunion, no consolation prize.
FAQ
Is the Epic of Gilgamesh older than the Bible? Yes. The earliest Gilgamesh poems date to around 2100 BCE, while the oldest biblical texts date to roughly 1000 BCE. The flood story in Gilgamesh predates the Noah narrative by at least a thousand years.
Who wrote the Epic of Gilgamesh? No single author. The Sumerian poems were anonymous. The Standard Babylonian Version was compiled by the scribe Sîn-lēqi-unninni around 1300 to 1000 BCE.
What is the flood tablet? Tablet XI of the Standard Babylonian Version, which contains Utnapishtim’s account of the great flood. It was translated by George Smith in 1872 and caused a sensation because of its parallels to the biblical flood.
Is Gilgamesh in the Bible? No. But some scholars have noted similarities between Gilgamesh and the biblical figure Nimrod, described in Genesis as “a mighty hunter before the Lord.” The connection is speculative.
Why It Still Matters
The Epic of Gilgamesh survives because clay does not burn. The library of Ashurbanipal was sacked and burned in 612 BCE. The fire baked the tablets harder. They lay in the rubble for 2,500 years. When we read them, we are reading the same words that a student copied in a dusty schoolroom while the Assyrian empire collapsed around him. The poem is about mortality. It is also about what lasts. The walls of Uruk are gone. The tablets remain.
For more on the sacred texts of the ancient world, see our guide to Mesopotamian mythology. If you want to understand how the flood narrative connects to other traditions, read our comparison of flood myths. For the symbols and deities that appear in the epic, visit the glossary of Mesopotamian gods.
