The essential story is about the relationship between Gilgamesh, a king who has become distracted and disheartened by his rule, and a friend, Enkidu, who is half-wild and who undertakes dangerous quests with Gilgamesh. Much of the epic focuses on Gilgamesh's thoughts of loss following Enkidu's death. It is often credited as being one of the first literary works with emphasis on immortality.