British troops have handed Camp Bastion over to Afghan forces, bringing to an end their bloody campaign in Helmand province.

Eastern Daily Press: Compounds lie completely empty and deserted of troops on Camp Bastion, Helmand Province, Afghanistan, as the British base becomes devoid of soldiers as they return to the UK and prepare to extract from the camp. PRESS ASSOCIATION Photo. Picture date: Saturday October, 25 2014. Photo credit should read: Ben Birchall/PA WireCompounds lie completely empty and deserted of troops on Camp Bastion, Helmand Province, Afghanistan, as the British base becomes devoid of soldiers as they return to the UK and prepare to extract from the camp. PRESS ASSOCIATION Photo. Picture date: Saturday October, 25 2014. Photo credit should read: Ben Birchall/PA Wire

The poignant handover ceremony saw British and American troops stand side by side as the Union flag and the Stars and Stripes were lowered at the base for the last time.

It brings to an end a costly chapter in the 13-year campaign, with the vast majority of the UK's 453 casualties losing their lives in the fight against the Taliban insurgency in Helmand.

The UK, which has had a presence in the southern province since 2006, is preparing to withdraw combat personnel entirely from Afghanistan by the end of the year.

Several hundred military advisers and trainers are expected to remain in the Afghan capital Kabul after the end of the year, but ministers insist they will not fight.

Secretary of State for Defence Michael Fallon said: 'It is with pride that we announce the end of UK combat operations in Helmand having given Afghanistan the best possible chance of a stable future.

'Our Armed Forces' tremendous sacrifice laid the foundations for a strong Afghan Security Force, set the security context that enabled the first democratic transition of power in the country's history, and stopped it being a launch pad for terrorist attacks in the UK.

'Although we are ending a significant chapter in our shared history, the UK's commitment to support Afghanistan will continue through institutional development, the Afghan National Army Officer Academy, and development aid.'

Lord Dannatt, who was chief of general staff between 2006 and 2009, said: 'Thirteen years into our intervention in Afghanistan, eight years into our intervention in the south of Afghanistan, we are now leaving a country that's got a chance of a decent future.

'We have had to conduct a fully-fledged counter insurgence over the last eight years which has been difficult and expensive in blood and treasure, but we have given them (the Afghans) the chance of a better life.

'I think we should be proud of what we have done while we remember with great sorrow those comrades we have lost.'