(FILES) This file photo taken on May 16, 2017 shows Britain’s Prince Philip, Duke of Edinburgh greets guests at a garden party at Buckingham Palace in London on May 16, 2017. Prince Philip, the 96-year-old husband of Queen Elizabeth II, left hospital on June 22 after two nights inside for treatment of an infection, Buckingham Palace said. The royal patriarch, who is to retire from public duties later this year, was driven by car to a private London hospital on Tuesday as a precautionary measure concerning a pre-existing condition./ AFP PHOTO / POOL / Victoria Jones

Prince Philip, the 96-year-old husband of Queen Elizabeth II, will retire this week, conducting the last of more than 22,200 solo public engagements, the palace said Monday.

The Duke of Edinburgh, who served as a naval officer during World War II, will attend a parade of Royal Marines at Buckingham Palace on Wednesday. He is captain general of the commando force.

“This concludes the duke’s individual programme of public engagements. But he may choose to attend engagements alongside the queen from time to time,” a spokeswoman told AFP.

The prince, the longest-serving consort in British history, announced in May that he would retire from public duties later this year.

He will have conducted 22,219 solo engagements since his wife became queen with the death of her father in 1952, made 637 solo overseas visits and will have given 5,496 speeches.

Philip is still in good health for a man of his age, although he was hospitalised for two nights in June for the treatment of an undisclosed infection.

He and the 91-year-old queen have taken a step back from royal duties in recent years, leaving their eldest son and heir Prince Charles and grandson Prince William to take their places.

William, the Duke of Cambridge, ended his brief career as an air ambulance pilot last week and will now turn his full attention to royal duties, alongside his wife Kate.