The US military left Bagram Airfield and handed it over to the Afghan National Security and Defence Force after nearly 20 years.