Afghanistan: Seven American Special Operations Forces soldiers and 200 Al-Qaeda Fighters are killed as American forces attempt to infiltrate the Shah-i-Kot Valley on a low-flying helicopter reconnaissance mission.

The Battle of Takur Ghar was a short but intense military engagement between United States special operations forces and al-Qaeda insurgents fought in March 2002, atop Takur Ghar mountain in Afghanistan. For the U.S. side, the battle proved the deadliest entanglement of Operation Anaconda, an effort early in the War in Afghanistan to rout al-Qaeda forces from the Shahi-Kot Valley and Arma Mountains. The battle saw three helicopter landings by the U.S. on the mountain top, each greeted by direct assault from al-Qaeda forces. Although Takur Ghar was eventually taken, seven U.S. service members were killed and 12 others were wounded. The battle is also known as the Battle of Roberts Ridge, after the first casualty of the battle, Navy SEAL Neil C. Roberts.

The War in Afghanistan was a conflict that took place from 2001 to 2021 in the South-Central Asian country of Afghanistan. It began when the United States and its allies invaded Afghanistan and toppled the Taliban-ruled Islamic Emirate. The war ended with the Taliban regaining power after a 19 years and 10 months-long insurgency against allied NATO and Afghan Armed Forces. It was the longest war in United States history, surpassing the Vietnam War (1955–1975) by approximately five months.

Following the September 11 attacks in 2001, then-US President George W. Bush demanded that the Taliban, then-de facto ruling Afghanistan, extradite Osama bin Laden, the mastermind of the attacks and who was, until then, freely operating within the country. The Taliban's refusal to do so led to the invasion of the country; the Taliban and their al-Qaeda allies were mostly defeated and expelled from major population centers by US-led forces and the Northern Alliance. Despite failing to find bin Laden after his escape to Pakistan, the US and a coalition of over 40 countries (including all NATO members) remained in the country and formed a UN sanctioned security mission called International Security Assistance Force (ISAF) to consolidate a new democratic authority in the country and prevent the return of the Taliban and al-Qaeda to power. At the Bonn Conference, new Afghan interim authorities (mostly from the Northern Alliance) elected Hamid Karzai to head the Afghan Interim Administration. A rebuilding effort across the country was also made following the expulsion of the Taliban.

The Taliban reorganized under Mullah Omar and in 2003 launched an insurgency against the new Afghan government. Insurgents from the Taliban and other groups waged asymmetric warfare with guerrilla raids and ambushes in the countryside, suicide attacks against urban targets, turncoat killings against coalition forces and reprisals against perceived collaborators. Violence eventually escalated to a point where large parts of Afghanistan had been retaken by the Taliban by 2007. ISAF responded by massively increasing troops for counter-insurgency operations to "clear and hold" villages, reaching its peak in 2011 when roughly 140,000 foreign troops operated under ISAF and US command in Afghanistan.Following the killing of Osama bin Laden in 2011 (the original casus belli), leaders of the NATO alliance commenced an exit strategy for withdrawing their forces. On 28 December 2014, NATO formally ended ISAF combat operations in Afghanistan and officially transferred full security responsibility to the Afghan government. Unable to eliminate the Taliban through military means, coalition forces and separately the government of president Ashraf Ghani turned to diplomacy to end the conflict. These efforts culminated in February 2020, when the United States and the Taliban signed a conditional peace deal in Doha which required that US troops withdraw by April 2021. The Taliban, in return, pledged to prevent any group in the territory of Afghanistan from attacking the US and its allies in the future. The Afghan government of that time was not a party to the deal and rejected its terms regarding release of prisoners.The target US withdrawal date was extended to 31 August. The Taliban, after the original deadline had expired, and coinciding with the troop withdrawal, launched a broad offensive throughout the summer in which they captured most of Afghanistan, finally taking Kabul on 15 August 2021. The same day, the president of Afghanistan Ashraf Ghani fled the country; the Taliban declared victory and the war ended. The reestablishment of Taliban rule was confirmed by the United States and on 30 August the last American military plane departed Afghanistan, ending almost 20 years of western military presence in the country.According to the Costs of War Project, the war killed 176,000 people in Afghanistan; 46,319 civilians, 69,095 military and police and at least 52,893 opposition fighters. According to the UN, after the 2001 invasion, more than 5.7 million former refugees returned to Afghanistan. However, in August 2021 when the Taliban took power, 2.6 million Afghans remained refugees, mostly in Pakistan and Iran, and another 4 million Afghans remained internally displaced persons within the country.