After the war, Turing was prosecuted for having sex with a man, stripped of his security clearance and forcibly treated with female hormones. He killed himself in 1954 at age 41 by eating an apple laced with cyanide.