A spokeswoman said in the statement that European judges had "endorsed in substance" the approach of UK judges.

The court said it was now appropriate to lift the "interim measure" which meant doctors had to keep providing life support treatment to the baby.

A Great Ormond Street spokesman said: "Our thoughts are with Charlie's parents on receipt of this news that we know will be very distressing for them."

"Today's decision by the European Court of Human Rights marks the end of what has been a very difficult process and our priority is to provide every possible support to Charlie's parents as we prepare for the next steps."

She added: "There will be no rush by Great Ormond Street Hospital to change Charlie's care and any future treatment plans will involve careful planning and discussion."

Charlie's parents were unavailable for comment. Their lawyers had argued that the couple's human rights and Charlie's human rights were being undermined. They said the couple's right to respect for family life was being infringed and Charlie's right to life and liberty violated.