In December 2009, President Barack Obama ordered a "surge" in U.S. forces to Afghanistan, deploying an additional 30,000 troops to fight al-Qaeda and the Taliban insurgency, before ordering a drawdown in 2011.[94] Afghanistan continued to host U.S. and NATO counter-terror and counterinsurgency operations (ISAF/Resolute Support and operations Enduring Freedom/Freedom's Sentinel) until 2021, when the Taliban retook control of Afghanistan amidst the negotiated American-led withdrawal from the country. Over 2,400 Americans, 18 CIA operatives, and over 1,800 civilian contractors, died in the Afghan War. The war in Afghanistan became the longest war in United States history, lasting 19 years and ten months–the Vietnam War lasted 19 years and five months–and cost the U.S. over $2 trillion.[95]