Lugalbanda in the Mountain Cave is a Sumerian mythological account. It is one of the four known stories that belong to the same cycle describing conflicts between Enmerkar, king of Unug (Uruk), and an unnamed king of Aratta. The story is also referred to as “Lugalbanda in the Wilderness” or “Lugalbanda I” and followed by the story known as Lugalbanda and the Anzu Bird, together forming the two parts of one story. The stories, from the composer’s point of view, take place in the distant past. The accounts are believed to be composed during the Ur III Period (21st century BCE), although almost all extant copies come from Isin-Larsa period (20th-18th centuries BCE). Tablets containing these stories were found in various locations of southern Iraq, primarily in the city of Nippur, and were part of the curriculum of Sumerian scribal schools during the Old Babylonian period (20th-17th centuries BCE).
Sumerian king Enmerkar wants to conquer the land of Aratta. Rounding up his army, Enmerkar marches toward Aratta, a city on the eastern highlands. Amongst the soldiers is Lugalbanda, who falls seriously ill and is left by his brothers to live or die in a cave along with some provisions. Lugalbanda lies ill for two days; he prays to the gods Shamash, Inanna, and Nanna to be healed of his sickness and is eventually healed by them. A few days later he captures a wild bull and two wild goats before lying down to dream. He is sent a dream instructing him to sacrifice the animals he has captured and he proceeds to do so. The end of the text is very fragmented and not well understood, but sheds light on the gods who, although they hold great power, exhibit a dark side.
In separate Sumerian traditions, specifically in the text referred to as Sumerian King List, Lugalbanda is known as the successor of Enmerkar as the king of Uruk, but in these Lugalbanda stories there is no such indication, and Lugalbanda appears only as one of the soldiers of king Enmerkar. In other accounts Lugalbanda is also known as the father of the mythical hero Gilgamesh, who succeeds Lugalbanda to the throne of Uruk.