Alan Turing, a brilliant mathematician, was instrumental in cracking the German Enigma code during WWII, significantly shortening the war. Despite his heroic efforts, he faced prosecution for being gay. Convicted of "gross indecency," he underwent chemical castration and tragically died of cyanide poisoning in 1954. The UK government posthumously pardoned him in 2013.