(BBC) Thousands of gay and bisexual men found guilty of decades-old sexual offences in England and Wales have been posthumously pardoned.
The enactment by the government of the so-called Alan Turing law means about 49,000 men will be cleared of crimes of which they would be innocent today.
Wartime code-breaker Mr Turing was pardoned in 2013 for gross indecency.
Statutory pardons will also be granted to people still living who apply to have their convictions removed.
The pardons were first announced last year and have now been officially rubber-stamped after the Policing and Crime Bill received Royal Assent.
The men were found guilty of committing now-abolished offences while in consensual relationships.
Justice minister Sam Gyimah said it was a “truly momentous day”.
He said: “We can never undo the hurt caused, but we have apologised and taken action to right these wrongs.”
Mathematician Mr Turing was given a royal pardon in 2013, nearly 60 years after his suicide in 1954.
The pardon addressed his 1952 conviction for gross indecency, after which he was chemically castrated.
This followed an official apology by former Prime Minister Gordon Brown in 2009 for how Mr Turing had been treated.
His relatives later mounted a high-profile campaign to secure pardons for other men similarly convicted under historical indecency laws.
Gay rights charity Stonewall said: “Another important milestone of equality has been secured in law.
“The more equality is enshrined into our law books, the stronger our equality becomes, and the stronger we as a community become.”