Britain’s Prince Philip, the husband of Queen Elizabeth, has left the London hospital where he has been staying for treatment, a Reuters witness said on Tuesday.

RELATED: Prince Philip Is Moved Back To Private Hospital After Undergoing Successful Heart Procedure

Buckingham Palace said in a statement to ET Canada Tuesday: “The Duke of Edinburgh has today been discharged from King Edward VII’s Hospital and has returned to Windsor Castle, following treatment for an infection and a successful procedure for a pre-existing condition.

“His Royal Highness wishes to thank all the medical staff who looked after him at both King Edward VII’s Hospital and St Bartholomew’s Hospital, and everyone who has sent their good wishes.”

Philip, the Duke of Edinburgh, was admitted to the King Edward VII’s Hospital on Feb. 16 after he felt unwell, to receive treatment for an unspecified, but not COVID-19-related, infection.

RELATED: Prince Philip Is ‘Slightly Improving,’ Duchess Camilla Says

The 99-year-old transferred briefly to another London hospital at the start of this month where he underwent a procedure for a pre-existing heart condition.

Prince Charles said he was “thrilled” his father had left hospital as he visited a pop-up vaccination centre at Finsbury Park Mosque in central London on Tuesday.

When asked if he had spoken to Philip yet, he responded: “Oh yes, I have spoken to him several times.”

Reporting by Toby Melville, Andy Bruce and William James, editing by Estelle Shirbon.