The war in Afghanistan (2001-2014) was Canada's longest war and its first significant combat engagement since the Korean War. After the 2001 terror attacks on the United States, Canada joined an international coalition to destroy the al-Qaeda terrorist network and the Taliban regime that sheltered it in Afghanistan. More than 40,000 Canadian Armed Forces members served in the 12-year campaign. The war killed 165 Canadians —158 soldiers and seven civilians. Although the Taliban were removed from power and the al-Qaeda network was disrupted, Canada and its allies failed to destroy either group, or to secure and stabilize Afghanistan.