The Duke of Sussex has accepted "substantial damages" and an apology from a news agency after photos were taken of his home from a helicopter.
According to Prince Harry's lawyers, the photos showed the Oxfordshire home's interior and "very seriously undermined" his safety.
The photos, which were taken in January, showed the living area, dining area and "directly into the bedroom", the High Court in London heard.
They were published in The Times newspaper and elsewhere online.
Barrister Gerrard Tyrrell told the court that the duke and his wife the Duchess of Sussex had chosen the Cotswolds home because of privacy it offered.
He said: "The syndication and publication of the photographs very seriously undermined the safety and security of the Duke and the home to the extent that they are no longer able to live at the property.
"The property had been chosen by the Duke for himself and his wife given the high level of privacy it afforded given its position in a secluded area surrounded by private farmland away from any areas to which photographers have access."
More from Prince Harry
Splash said it had "always recognised that this situation represents an error of judgement and we have taken steps to ensure it will not be repeated".
"We apologise to the Duke and Duchess for the distress we have caused."