Complex sentence: Immediately the doctors understood his mental illness and he was convicted to spend ten years in Reggio Emilia psychiatric prison, where he studied and got a degree in Political Science.
Split into simpler sentences: Immediately the doctors understood his mental illness and he was convicted to spend ten years in Reggio Emilia psychiatric prison. He studied in prison and got a degree in Political Science.