During the Soviet–Afghan War, the United States and the United Kingdom throughout the 1980s provided arms to the Mujahideen rebels in Afghanistan until the last troops from the Soviet Union left Afghanistan in February 1989.