Dungeon
A dungeon was a type of prison, most often  and located in castles.

In 2267, James T. Kirk, Spock and Doctor Leonard McCoy were all imprisoned in an illusory dungeon on Pyris VII, equipped with various medieval artifacts. Kirk observed that all they experienced, like dungeons, curses, skeletons and iron maidens were all Earth manifestations. Spock later stated that things like dungeons, ghosts, witches, castles and black cats all belonged to universal Human myths and symbols. ()

See also
Dungeon of Pain

External link 
 
Prisons and penal colonies