The Soviet–Afghan War in 1979 and the installation of an undemocratic regime in Afghanistan led Canada to sever diplomatic ties. Even after the Soviet withdrawal from Afghanistan in 1989, the two countries did not re-establish full diplomatic relations, and contact was minimal despite humanitarian aid efforts by Canada in the 1990s.