He was the father of modern computing whose work on the Enigma code at Bletchley Park is said to have shortened the Second World War.
But he was also gay and in those less enlightened times was chemically castrated by an ungrateful nation after being convicted of "gross indecency" with a man in 1952.
Now, nearly 60 years after his suicide from cyanide poisoning at the age of 41, Alan Turing has been officially pardoned by the Queen under the little-known Royal Prerogative of Mercy.
The pardon comes after a change of heart by ministers who had previously insisted that Turing was properly convicted of what at the time was a criminal offence.
A pardon is usually granted only when the person is innocent of the offence and where a request has been made by someone with a vested interest, such as a family member. But Turing's pardon has been issued without either requirement being met.