The Soviet Union withdrew in 1989, but continued to provide military assistance worth billions of dollars to the PDPA regime until the USSR's collapse in 1991.