Gilgamesh (; originally ) was a hero in ancient Mesopotamian mythology and the protagonist of the Epic of Gilgamesh, an epic poem written in Akkadian during the late 2nd millennium BC. He was possibly a historical king of the Sumerian city-state of Uruk, who was posthumously deified. His rule probably would have taken place sometime in the beginning of the Early Dynastic Period, 2900 – 2350 BC, though he became a major figure in Sumerian legend during the Third Dynasty of Ur (2112-2004 BC).
Tales of Gilgamesh's legendary exploits are narrated in five surviving Sumerian poems. The earliest of these is likely "Gilgamesh, Enkidu, and the Netherworld", in which Gilgamesh comes to the aid of the goddess Inanna and drives away the creatures infesting her huluppu tree. She gives him two unknown objects, a mikku and a pikku, which he loses. After Enkidu's death, his shade tells Gilgamesh about the bleak conditions in the Underworld. The poem Gilgamesh and Aga describes Gilgamesh's revolt aga