Prince Harry has spent 10 weeks serving in Afghanistan, alongside thousands of other soldiers. He's been fighting the Taleban, extremists who had been in charge of the country.
Last year, his planned tour to Iraq had to be cancelled because of worries about his safety and fears of attacks on his Army group.
But this time the media agreed to keep quiet, and Harry was able to serve 10 weeks of service before an American website revealed his whereabouts.
Prince Harry - here with some Gurkhas - said he felt: "A bit of excitement... finally, to get the chance to actually do the soldiering that I wanted to do ever since I joined."
A member of the Household Cavalry, Prince Harry had to go out on foot patrols in the Helmand Province, where he was based.
He said he'd enjoyed being in Afghanistan and added: "It's very nice to be a normal person for once, I think this is about as normal as I'm ever going to get."
Here's Harry on another patrol. Now he's been brought home, he says he's keen to return to Afghanistan "very, very soon".
He says his disappointed that his mission was cut short, but he hopes that - with help from the media - he will be able to return.
Harry was working as a tank troop commander. He insists he is "not a hero" and praised his fellow servicemen and women for their bravery.
Here he is, sharing some fun times with his friends. Prince Harry has now been flown back to England for his own safety and that of other soldiers with him.
There was time for a spot of rugby, too. Harry's a big fan of the sport and follows the England rugby team.
Harry is often followed by photographers in the UK, but in Afghanistan he could blend in with the other soliders.
He returned to the UK after his whereabouts was revealed, arriving at RAF Brize Norton in Oxfordshire.
He was greeted by his dad, Prince Charles, and his older brother, Prince William. Harry said he was looking forward to taking a bath!