The Soviet Union had a slow economy during this decade because military spending was at an all-time high. They tried to keep up with the United States in military spending, but could not. In the Soviet war in Afghanistan starting in 1979, the Soviet Union had a difficult time fighting resistance groups, some of them armed and trained by the United States. The Soviet Union's failed invasion of Afghanistan is often compared to the United States' failure during the Vietnam War.