After the prince was accidentally locked in the dungeon, he was in a state of high dudgeon and so he complained to the king about how poorly he had been treated.
2. The secure main tower of a castle; an archaic term.
3. It was different from the ordinary prison in being more severe as a place of punishment.
This word comes ultimately from Latin dominus "lord, master"
This was derived from dominium "property" (source of English dominion), that in post-classical times became domino or domnio, meaning "lord's tower".
In Old French this became donjon, the term for a "castle keep", and eventually, by extension, a "secure (underground) cell". The form dungeon developed the specialized sense of strong closed cell, underground place of confinement; based on the French donjon (large tower of a castle).