Philip, who is also known as the Duke of Edinburgh, was admitted to hospital on Tuesday as a precautionary measure for the treatment of an infection arising from a pre-existing condition.
"The Duke of Edinburgh left hospital this morning," a Palace spokesman said.
Philip has been by the queen's side throughout her 65 years on the throne and she has described him as "my strength and stay."