Gilgamesh was a historical king of the Sumerian city-state of Uruk, a major hero in ancient Mesopotamian mythology, and the protagonist of the Epic of Gilgamesh, an epic poem written in Akkadian during the late second millennium BC. He probably ruled sometime between 2800 and 2500 BC and was posthumously deified. He became a major figure in Sumerian legends during the Third Dynasty of Ur (c. 2112 – c.