A 21-year-old woman in El Salvador whose baby was found dead in the toilet where she gave birth has been cleared during a retrial.
Evelyn Hernández had always maintained she was innocent, saying that she did not know she was pregnant and lost consciousness during the birth.
Prosecutors had asked for a prison sentence of 40 years.
Her case has been closely watched in El Salvador and abroad with women's rights activists demanding she be acquitted.
El Salvador has one of the strictest anti-abortion laws in the world. Abortion is illegal in all circumstances and those found guilty face between two and eight years in jail.
But in many cases, including the one against Ms Hernández, the charge is changed to one of aggravated homicide, which carries a minimum sentence of 30 years.
Ms Hernández's case was the first of its kind in El Salvador in which a full retrial had been ordered.
Previously women accused of aborting their babies had had their sentences commuted after their 30-year jail terms were deemed "disproportionate and immoral" but their verdicts were not overturned.
Women's rights activists now hope Ms Hernández's retrial will set a precedent allowing other women jailed under El Salvador's strict anti-abortion laws to fight their sentences.
"Evelyn now has her freedom back," the campaign group 'Justice for Evelyn in El Salvador' tweeted. "Thank you to all of the individuals and to the national and international organisations for your support of and commitment to the freedom of all women who suffer an obstetric emergency."
Argentine pro-choice group 'Seguimos En Campaña also posted a message in support of Ms Hernández. "The feminist fight succeeded in El Salvador and in the rest of the world. Evelyn was absolved and is free. Congratulations to the defence team", the group said in a tweet.
The Office of the United Nations High Commissioner for Human Rights has in the past called on El Salvador to reform its "draconian" abortion laws.
Evelyn Hernández said she experienced severe stomach pains and bleeding while at her home in rural El Salvador on 6 April 2016.
She went to the toilet, located in an outhouse, where she fainted. Her mother took her to a hospital, where doctors found she had given birth.
She was arrested after the body of her baby was found in the toilet's septic tank.
Ms Hernández, who was 18 at the time, said she had been raped by a gang member but that she had no idea that she was pregnant.
She said she had confused the symptoms of pregnancy with stomach ache because she had experienced intermittent bleeding, which she thought was her menstrual period.
"If I'd known I was pregnant I would have awaited [the birth] with pride and joy," she said in the past.
She also said that while she had "felt something come loose" inside her, she did not hear a baby cry out and did not realise she was giving birth.
She was initially accused of abortion but the charge was changed to one of aggravated homicide with prosecutors arguing she had hidden her pregnancy and not sought antenatal care.
In July 2017, the judge ruled that Ms Hernández knew she was pregnant and found her guilty. She was sentenced to 30 years in prison of which she has already served 33 months.
Why was there a retrial?
Ms Hernández's lawyers appealed against the judge's decision. They said forensic tests showed that the baby had died of meconium aspiration, inhaling his own early stool. This can happen while the baby is still in the uterus, during delivery or immediately after birth.
The lawyers said the test proved that Ms Hernández had not tried to abort the baby but that it had died of natural causes. "There is no crime," defence lawyer Bertha María Deleón said.
In February 2019, El Salvador's supreme court annulled the 2017 conviction citing absence of evidence and ordered a retrial with a new judge.
Ms Hernández was released from jail pending the retrial, which started in July.
Prosecutors in the retrial asked for an even harsher sentence - 40 years in prison - than that originally imposed.
Salvadorean pro-choice campaigner Morena Herrera said the prosecutors' demand for such a steep sentence was "extremely grave". She accused them of not taking into consideration the circumstances in which the birth took place and the severe blood loss Ms Hernández suffered.
Why is the case significant?
Rights organisations in El Salvador say there are at least 17 other women in jail under the country's strict abortion laws.
Over the last decade, campaigners have managed to free around 30 through evidence reviews.
Ms Hernández's retrial is the first such case to be heard under new President Nayib Bukele, who took office in June, and women's groups are hoping he could usher in a more lenient stance on the issue.
President Bukele has said that he opposes abortion but has expressed sympathy with women suffering miscarriages who then come under suspicion.
"If a poor woman suffers a miscarriage, she's immediately suspected of having had an abortion. That's where the issue of social inequality comes into play," he said while he was running for president.