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 is a heavy police presence at the Supreme Court in Islamabad as many feared violence could break out.
Chief Justice Saqib Nisarm, who read out the ruling, said Asia Bibi could walk free from jail in Sheikupura, near Lahore, immediately if not wanted in connection with any other case.
She was not in court to hear the ruling.
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 when a row broke out about a bucket of water. The women said that because she had used a cup, they could no longer touch it, as her faith had made it unclean.
Prosecutors alleged that in the row which followed, the women 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.
What did the Supreme Court say?
The judges said the prosecution had “categorically failed to prove its case beyond reasonable doubt”.
The case was based on flimsy evidence, they said, and proper procedures had not been followed. The alleged confession was delivered in front of a crowd “threatening to kill her”.
The ruling heavily referenced the Koran and Islamic history. It ended with a quote from the Hadith, the collected sayings of the Prophet Muhammad, which calls for non-Muslims to be treated kindly.