Philip was appointed as a midshipman in January 1940. Philip spent four months on the battleship HMS Ramillies, protecting convoys of the Australian Expeditionary Force in the Indian Ocean, followed by shorter postings on HMS Kent, on HMS Shropshire, and in Ceylon.