after the 1979 soviet invasion and occupation , 3 million civilians fled to pakistan , which was assisted by hefty western support to take them in .
Afghanistan was invaded by the Soviet Union in 1979.