This is a combination of dungeon and torture device from the Middle Ages. It was a small room or shaft where someone was confined and left to die.
It seems slightly different from a dungeon, though the words are often conflated (indeed, the Wikipedia page even redirects). Whereas a dungeon was a general prison, an oubliette was specifically designed for people to simply waste away until they died.
It’s from the French word for “forget.”