When Written: As far back as the Third Dynasty of Ur (around BCE), stories were written about the legendary king Gilgamesh. These stories, however, were not unified into a single narrative until the 18th century BCE, in what is now known as the Old Babylonian version of the Epic.