The Soviet Union lost its war in Afghanistan after a 10-year occupation (1979-1989). Despite superior military firepower, the Soviets faced fierce resistance from Afghan mujahideen fighters supported by the US and Pakistan. This prolonged conflict drained Soviet resources and contributed to the USSR's eventual collapse.