The Soviet Union: The Soviet Union invaded Afghanistan in 1979 in an attempt to prop up the communist government of the People's Democratic Party of Afghanistan (PDPA). The Soviet-Afghan War lasted for ten years and resulted in the deaths of over one million Afghans. The Soviets were eventually forced to withdraw from Afghanistan in 1989.
The United States: The United States invaded Afghanistan in 2001 in response to the September 11 attacks, which were planned and executed by al-Qaeda, a terrorist organization based in Afghanistan. The United States quickly overthrew the Taliban, which had been harboring al-Qaeda and its leader, Osama bin Laden. The United States has remained in Afghanistan for over twenty years, but the war has dragged on and the Taliban has made significant gains in recent years.