The short answer
The United States invaded Afghanistan in October 2001 after the September 11 attacks. The al-Qaeda group behind those attacks was based in Afghanistan, and the Taliban government that ruled much of the country sheltered it. Washington demanded that the Taliban hand over al-Qaeda’s leader, Osama bin Laden, and close the group’s training camps. The Taliban did not agree to those demands, and the United States went to war.
What happened on September 11
On 11 September 2001, al-Qaeda hijackers seized four passenger planes. Two were flown into the World Trade Center towers in New York, one struck the Pentagon near Washington, D.C., and the fourth crashed in a field in Pennsylvania after passengers tried to take back control of the plane. Nearly 3,000 people died in the attacks.
Why Afghanistan was the focus
Al-Qaeda had trained fighters and planned operations from Afghanistan during the 1990s. The Taliban, who took control of Kabul in 1996 and much of the country in the years after, gave the group shelter. Osama bin Laden had been based in Afghanistan for several years before the attacks.
When the United States made its demands, the Taliban refused to hand over bin Laden. That refusal was the main reason the US government gave for moving against the Taliban government.
The invasion
On 7 October 2001, US forces began air strikes under the name Operation Enduring Freedom. Ground forces, including Afghan opposition fighters such as the Northern Alliance, pushed the Taliban back. Taliban control of Kabul ended in November 2001. In December, Afghan leaders agreed on an interim government at talks in Bonn, Germany.
The United Kingdom and other countries joined the effort. NATO invoked its collective defense clause for the first time after the attacks, which meant its members treated the attacks on the United States as an attack on all of them.
Did the goals change?
Officials said the aims were to break al-Qaeda’s base in Afghanistan, remove the Taliban from power, and prevent new attacks. Over the following years, the goals widened to include building state institutions and training Afghan security forces. Critics argued that the mission grew well beyond its original purpose. Supporters said that without that work, the Taliban could return and the country could again become a base for attacks.
Where the war went
The Taliban regrouped in the following years, and the conflict continued for two decades. NATO took command of the international force in 2003, and its combat mission ended at the end of 2014. The history of NATO in Afghanistan is closely tied to how the war unfolded, including its later stages.
In February 2020, the United States and the Taliban signed an agreement in Doha, Qatar, that set a timeline for withdrawal. The Taliban retook Kabul in August 2021.
Not part of the Second World War
The 2001 invasion came more than fifty years after the Second World War ended in 1945. It was a separate conflict. Afghanistan had stayed neutral in the earlier war, so the two have no direct connection beyond the country itself.