A Pakistani court has overturned the death sentence of a Christian woman convicted of blasphemy, a case that has polarised the nation.
Asia Bibi was convicted in 2010 after being accused of insulting the Prophet Muhammad in a row with her neighbours.
She always maintained her innocence, but has spent most of the past eight years in solitary confinement.
The landmark ruling has already set off protests by hardliners who support strong blasphemy laws.
There was a heavy police presence at the Supreme Court in Islamabad as many feared outbreaks of violence.
Chief Justice Saqib Nisar read out the ruling saying she was free to go, if not wanted in connection with any other case.
What was Asia Bibi accused of?
The trial stems from an argument Asia Bibi, whose full name is Asia Noreen, had with a group of women in June 2009.
They were harvesting fruit in Sheikhupura, near Lahore, when a row broke out about a bucket of water. The women said that because she had drunk from a cup they could no longer use it, as her faith had made it unclean.
The woman alleged that in the row which followed, they said Asia Bibi should convert to Islam, and that she made three offensive comments about the Prophet Muhammad in response.
She was later beaten up at her home, during which her accusers say she confessed to blasphemy. She was arrested after a police investigation.
Asia Bibi admitted to exchanging “hot words” with her neighbours but has always maintained she said nothing blasphemous, and never confessed.
Her lawyers said the prosecution case was full of contradictions.
Why is this case so divisive?
Islam is Pakistan’s national religion and underpins its legal system. Public support for the strict blasphemy laws is strong.
Hardline politicians have often backed severe punishments, partly as a way of shoring up their support base.
But critics say the laws have often been used to get revenge after personal disputes, and that convictions are based on thin evidence.
Most of those convicted are Muslims, but since the 1990s, scores of Christians have been convicted.
No-one has ever been executed, but some people accused of the offence have been lynched or murdered.
Asia Bibi’s case gained even more prominence after the assassination of Salman Taseer, the governor of Punjab province. He had called for her to be pardoned and for the blasphemy laws to be overhauled.
He was shot dead in broad daylight in early 2011 by his security guard, Mumtaz Qadri, a supporter of the strict blasphemy laws. Qadri was sentenced to death but remains a hero to many.
Internationally, Asia Bibi’s conviction has been widely condemned as a breach of human rights.
What happens now?
There are fears that there could be a violent response to her acquittal.
As with her previous trials and appeal large crowds gathered outside the court in Islamabad on Wednesday demanding her conviction be upheld.
She has been offered asylum by several countries and was expected to leave the country if acquitted.
Her daughter, Eisham Ashiq, had previously told the AFP news agency that if she were released: “I will hug her and will cry meeting her and will thank God that he has got her released.”
But the family said they feared for their safety and would likely have to leave Pakistan.
Pakistan court clears condemned Christian