The famed Amulet of Yendor is the object you must claim in order to win in NetHack. After performing the invocation ceremony, you find the Amulet among the possessions of the high priest of Moloch in Moloch's Sanctum. After retrieving the Amulet, you must race back to the top of the dungeon while being opposed by the ever-resurrecting Wizard of Yendor. After finally exiting the dungeon, you must conquer the elemental planes. When you finally arrive in the Astral Plane, you must offer the Amulet on the altar of your god to win the game.