The "Alan Turing law" is an informal term for the law in the United Kingdom, contained in the Policing and Crime Act 2017, which serves as an amnesty law to pardon men who were cautioned or convicted under historical legislation that outlawed homosexual acts. The provision is named after Alan Turing, the World War II codebreaker and computing pioneer, who was convicted of gross indecency in 1952. Turing received a royal pardon (posthumously) in 2013. The law applies in England and Wales.
Several proposals had been put forward for an Alan Turing law, and introducing such a law has been government policy since 2015. To implement the pardon, the British Government announced on 20 October 2016 that it would support an amendment to the Policing and Crime Bill that would provide a posthumous pardon, also providing an automatic formal pardon for living people who had had such offences removed from their record. A rival bill to implement the Alan Turing law, in second reading at the time of the government announcement, was filibustered. The bill received royal assent on 31 January 2017, and the pardon was implemented that same day. The law only provides pardons for men convicted of acts that are no longer offences; those convicted under the same laws of offences that would now be classified as cottaging, underage sex, or rape will not be pardoned.
Homosexual acts between men were illegal until the passing of the Sexual Offences Act 1967 in England and Wales, the Criminal Justice Act 1980 in Scotland, and the Homosexual Offences Order 1982 in Northern Ireland. As the three regions are separate jurisdictions, and many elements of criminal law are devolved matters in the United Kingdom, the British Government only has the power to legislate a pardon for England and Wales.