madhouse (n.)
1680s, from mad + house (n.). Figurative use by 1919.