In a landmark verdict, Pakistan's Supreme Court on Wednesday overturned the conviction of a Christian woman facing execution for blasphemy.
Asia Bibi was convicted in 2010 after being accused of insulting Islam in a row with her neighbours. She always maintained her innocence, but has spent most of the past eight years in solitary confinement.
Her case has been deeply divisive in Pakistan where there is strong support for the blasphemy laws.
The apex court, in a three-member bench led by chief justice Saqib Nisar, issued the verdict on Wednesday morning, three weeks after they had reached a decision. The delay followed threats by blasphemy campaigners to hold protests.
"Her conviction is set aside and she is to be relieved forthwith if not required in other charges," said Nisar, reading out the judgment.
There was tight security in the capital, Islamabad, amid fears of violence.
Bibi was accused of committing blasphemy in 2009. She was convicted in 2010 by the trial court and her death sentence was maintained by the Lahore High Court in 2014.
She appealed against the conviction to the Supreme Court, which for the first time heard the case in July 2015.
Bibi's case gained prominence when when former governor of Pakistan's Punjab province Salman Taseer was killed in 2011 for supporting her and criticising the blasphemy laws.
The blasphemy laws were promulgated by former military dictator Ziaul Haq in 1980s. A person
convicted under these laws is given death sentence.
Critics say strict blasphemy laws have often been used to get revenge after personal disputes, and that convictions are based on thin evidence.
Dozens of people have been charged under the laws.
Though, Bibi is being released, there are fears that she might be at risk of being attacked by militants.