Northern Ireland's strict abortion laws are incompatible with human rights legislation and need "radical reconsideration", the UK's highest court has urged.
A majority of a seven-strong panel of Supreme Court justices ruled the Northern Ireland Human Rights Commission (NIHRC) had no legal standing to bring its challenge against the abortion law.
But, by a majority, the judges also strongly expressed their opinion that the current laws are incompatible with article 8 of the European Convention on Human Rights (ECHR) - the right for respect for private and family life.
Deputy Supreme Court president Lord Mance said the present law "clearly needs radical reconsideration" and that the opinion of the court - while not legally binding - "cannot safely be ignored".
Lord Mance said in a lengthy written ruling: "I am, in short, satisfied that the present legislative position in Northern Ireland is untenable and intrinsically disproportionate in excluding from any possibility of abortion pregnancies involving fatal foetal abnormality or due to rape or incest.
"Those responsible for ensuring the compatibility of Northern Ireland law with the Convention rights will no doubt recognise and take account of these conclusions, at as early a time as possible, by considering whether and how to amend the law, in the light of the ongoing suffering being caused by it as well as the likelihood that a victim of the existing law would have standing to pursue similar proceedings to reach similar conclusions and to obtain a declaration of incompatibility in relation to the 1861 Act."
Giving his opinion, Lord Kerr praised three "enormously brave women" who gave "unsparing accounts" of having to deal with a pregnancy where they knew their babies were "doomed to die".
He said: "No-one who heard those accounts could fail to be moved by the courage of those women.
"Nor could they fail to have profound sympathy with the terrible ordeal which they had to endure."
The judge said the court had to carry out a "dispassionate analysis" of the difficult legal issues, but that the "nature of their suffering and the trauma of their experiences were by no means irrelevant" to the court's decision.
He said that, where it is clear a foetus is suffering from a fatal abnormality, there is "no justification" in inflicting on the mother the "appalling prospect" of having to carry it to term.
The judge added: "Put simply, the balance cannot come down in favour of a law which imposes that experience on a woman.
"Quite apart from other considerations, the imposition of such a law fails to give any weight to the personal autonomy of a woman and her freedom to control her life."
He also said the blanket ban was "disproportionate" in cases of rape and incest, adding: "To require in every instance a girl or woman to carry to term a foetus which was the consequence of exploitative and abusive behaviour and which is utterly abhorrent to her could not, we concluded, be considered as having struck the right balance between her rights and those of society."
The justices said that because of their decision on the standing of the NIHRC, the Supreme Court "has no jurisdiction" in the proceedings to make a declaration of incompatibility.
Explaining why the commission did not have power to bring the case, Lord Mance said: "In summary, the present proceedings were not instituted by identifying any unlawful act or any actual or potential victim of it."
During proceedings in October last year, the NIHRC told the court the current law criminalises "exceptionally vulnerable" women and girls and subjects them to "inhuman and degrading" treatment.
A QC representing the commission argued that human rights were being breached, with those affected being forced to go through "physical and mental torture".
The Supreme Court was asked to rule that a prohibition on abortions where a pregnancy arises from rape or incest, or "involves a serious foetal abnormality", is unlawful.
Contesting the appeal, the Stormont Executive's senior legal adviser, Attorney General John Larkin QC, said Northern Ireland's criminal law on abortion is a matter for the "democratic judgment" of the legislature.
The legislature, he said, "has struck the proportionate balance required for the protection of the rights of women and unborn children".
The ruling must force the UK Government to urgently legislate for change, Amnesty International said following the verdict.
“All eyes are now on the UK Government. Theresa May can no longer sit back and do nothing whilst countless women continue to suffer on her watch," Grainne Teggart, Amnesty International’s Northern Ireland campaigner said.
Sarah Ewart, a Northern Ireland woman who was forced to travel to the UK for an abortion after being told her baby would not survive said getting involved in the case had been worth all the effort.
“This feels like a huge relief. Experiencing something as painful as I did and then going through the ordeal of the courts has been emotionally draining," Mrs Ewart said.
"I feel like we’re finally getting somewhere – that people are starting to realise that us women in Northern Ireland are being denied our basic rights. I hope this ruling means that things will change so no more women have to go through what I, and so many others, already have.”
Sinn Fein deputy leader Michelle O'Neill said the court judgement made it clear that legislative change is required.
“Today’s judgement makes it clear that in cases of Fatal Foetal Abnormalities, sexual crime and rape that the current law in the north remains incompatible with the European Convention on Human Rights," she said.
“Although the Human Right Commission appeal was dismissed, this was essentially a technicality and the court expressed the view that if an individual victim brought a case, a formal declaration of incompatibility would in all likelihood be made.
“Sarah Ewart has already set out her intention to seek that formal declaration of incompatibility and it’s clear that change in the law is required."
Submissions were made at the Supreme Court by a number of bodies, including seven of the UK's leading reproductive rights organisations, Humanists UK, Bishops of the Roman Catholic Dioceses in Northern Ireland, the Society for the Protection of Unborn Children and Amnesty International.
Unlike other parts of the UK, the 1967 Abortion Act does not extend to Northern Ireland.
Abortion is illegal except where a woman's life is at risk or there is a permanent or serious danger to her mental or physical health.
Anyone who unlawfully carries out an abortion could be jailed for life.
The UK Government has resisted calls to step in and legislate amid the ongoing powersharing impasse in Northern Ireland, insisting that any decision on abortion in the region has to be taken by locally elected politicians at Stormont.