Answer:
In October 2014, British forces handed over the last bases in Helmand to the Afghan military, officially ending their combat operations in the war. On 28 December 2014, NATO formally ended ISAF combat operations in Afghanistan and officially transferred full security responsibility to the Afghan government.
hopefully this answered your question