LONDON (AP) - Buckingham Palace says Prince Philip left the hospital, one day after being admitted for the treatment of an infection.

The palace said in a statement that the 96-year-old Duke of Edinburgh, the husband of Queen Elizabeth II, left the hospital Thursday.

Prince Philip was admitted to a hospital for treatment of an infection on Wednesday. The palace said the infection was related to a pre-existing condition.

Philip, also known as the Duke of Edinburgh, is 96 and recently said he was cutting down his public appearances and would not take on new charity roles.

Philip announced the decision to reduce his commitments in May.

He has suffered a blocked coronary artery and a severe bladder infection in recent years but has been in generally good health. He still attends summer garden parties with the queen, hosting more than 2,000 guests at a time.

The queen and Philip both suffered from severe cases of the flu at Christmas but have recovered.

Copyright 2017 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.