The war in Afghanistan was initiated by the United States and its allies in response to the September 11, 2001, terrorist attacks. The main objective was to dismantle Al-Qaeda and oust the Taliban regime, which had provided a safe haven for the terrorist group.