Defence Secretary Michael Fallon has pledged Britain's continued support to Afghanistan during a surprise visit to Kabul.
Mr Fallon said during a one-day visit to the country's capital that security in Afghanistan is a global issue and Britain's presence will help defeat terrorism.
Mr Fallon met with Afghan President Ashraf Ghani and chief executive Abdullah Abdullah.
The UK has 352 troops in Afghanistan as part of the Nato Resolute Support mission, which has a mandate to train and advise Afghan forces.
At the height of the war, The UK played a significant role in the southern province of Helmand, losing more than 450 troops.
Most British forces pulled out when the international combat mission drew down in 2014.
Mr Fallon called on the Taliban to participate in a peace process with Afghanistan's government.