The book tells the story of Dr. Bacamarte, an alienist (the term for psychiatrist at the time), who creates Casa Verde, a place to conduct unprecedented studies on the human mind, but ends up losing himself in his own madness.