The first randomized study of its kind reveals effective treatment for prisoners suffering from mental illness.