The Duke of Cambridge has spent more than an hour chatting with veterans and the families of those killed in Afghanistan.
Prince William was at Wellington Barracks in London where he discussed the conflict and posed for dozens of photographs at the gathering hosted by the Royal British Legion.
Private Aron Shelton, from Bridlington in East Yorkshire, said his wife Callan was delighted after the Duke, wearing his Royal Air Force ceremonial uniform, posed for a photograph with her and their two-year-old daughter.
"My wife is over the moon," he said. "She can't believe it. My wife has already said she will get it blown up to triple A4 size and get it on the wall."
The event followed the service of commemoration at St Paul's Cathedral to mark the end of Britain's 13-year military involvement in Afghanistan.
A teenage boy whose father was killed during the Afghanistan conflict has told ITV News that today's ceremony honouring the war dead has helped him understand why his dad went to fight.
Brandon, aged 15, lost his father Sgt Steven Campbell five years ago when a roadside bomb exploded nearby.
It's helped me see that he was there for a good cause, and he did what he loved doing.
It's helped a lot.
As 13 years of conflict in Afghanistan officially came to an end with a special commemorative ceremony, those involved have used the opportunity to reflect on the operation.
Among them was Stuart Tootal, a former Commanding Officer for 3 Para, who resigned over the way his troops were treated.
He told ITV News that he was pleased with how the operation had improved over the past eight years, in particular in giving Afghani troops the necessary training and skills to allow them to monitor and take on terrorist forces themselves.
The Archbishop of Canterbury has honoured Britain's Armed Forces who fought and died in Afghanistan, publicly thanking them during a service held in their memory.
The end of the 13-year conflict was marked by a ceremony of commemoration at St Paul's Cathedral where the Most Rev Justin Welby paid tribute to all those who served, leaving behind family, facing danger and suffering injury.
ITV News Correspondent Neil Connery reports.
Hundreds of people gathered at St Paul's Cathedral for a service marking the end of 13 years of UK military operations in Afghanistan today.Read the full story ›
War veterans, serving soldiers and families joined together to sing the national anthem at a ceremony honouring those who fought in Afghanistan.
Aircraft from the Afghanistan campaign roared over the parade in their own salute to mark the end of the conflict.
RAF Chinook helicopters, Hercules transport planes and Tornado attack jets flew over St Paul's Cathedral as the parade through the City of London to Guildhall took place.
RAF Chinooks - used throughout the Afghanistan operation - carried out a flypast over St Paul's Cathedral as part of a ceremony marking the end of the conflict.
British service men and women are marching through London this lunchtime in a parade honouring those who served during the conflict in Afghanistan, and marking the official end of the operation.
The last remaining troops were lifted out of the Allied base in October.
The Prince of Wales was due to take a salute before the parade stepped off.
This video has now ended.
British and coalition troops took part in an Afghanistan commemoration service in Kabul today as a similar event took place at St Paul's Cathedral in London.