Toby Melville - WPA Pool/Getty Images
(CNN) -- After more than seven and a half years of military service, Prince William is leaving the armed forces to focus on royal duties and charity work, Kensington Palace said Thursday.
William was a pilot with the Royal Air Force Search and Rescue Force. Known to his RAF comrades as Flight Lt. Wales, he had been stationed at a search-and-rescue base on the remote Welsh island of Anglesey since 2010, and lived there with Catherine, the Duchess of Cambridge.
In the next few weeks, the pair will move into their official residence at Kensington Palace.
The palace statement said that William is considering a "number of options" for public service.
For now, he will focus on his royal duties. He will also expand on his conservation work, dealing particularly with endangered species.
He will also focus on charities that deal with children, veterans and service members.