William completed his final shift as a Royal Air Force search and rescue pilot on Tuesday, a release from Clarence House said.
"He will expand his work in the field of conservation, particularly in respect of endangered species," a palace spokesman said. "The duke will continue to work with his charities on issues relating to children and young people, veterans and serving members of the armed forces."
William, his wife Kate and their infant son George are expected to move from their home in Anglesey, Wales -- where William was stationed for three years -- to Kensington Palace within the next few weeks, the release said.
Notable deaths of 2014 [PHOTOS]
Queen Elizabeth II sends out her first tweet