Harry was educated at schools in the United Kingdom and spent parts of his gap year in Australia and Lesotho. He then underwent officer training at the Royal Military Academy Sandhurst. He was commissioned as a cornet (i. e. second lieutenant) into the Blues and Royals, serving temporarily with his brother, Prince William, and completed his training as a troop leader. In 2007–08, he served for over ten weeks in Helmand, Afghanistan, but was pulled out after an Australian magazine revealed his presence there. He returned to Afghanistan for a 20-week deployment in 2012–13 with the Army Air Corps. He left the army in June 2015.