A user has suggested improving this page or section as follows:
"This page should explain storyline of NetHack as a whole, because everything about it is currently on dozens of different pages. Where is the hero from (Home-level)? Hero does the Quest to save people of his homeland (?). After that he must find Amulet of Yendor for his God. As result, he will gain immortality. Some details of the world; Castle, Astral Plane, Oracle etc. I think most of that is in game but not in wiki. "
You were born a chosen one, heralded from birth as an instrument of one of twenty three deities. Your destiny is to acquire the Amulet of Yendor for your God and attain immortality.
Thankfully, very few actions are mandatory, many features are randomized, and there are many ways to achieve almost anything. This adds to the strategic challenge and makes the game interesting to replay. As a side effect, there is almost no "story" in the sense of most other games.