Formal cessation took place on 28 December 2014 via a ceremony in the city of Kabul thus ending the 13 year long war. Thousands of American and other troops continued helping the Afghan government until December 31, 2016 when they were withdrawn. After security deteriorated, American soldiers returned and over 10,000 were in the country at the end of 2017.