 When the pro-Soviet Afghan Communists seized power in Afghanistan in 1978, relations between China and the Afghan communists quickly turned hostile.The Afghan pro-Soviet communists supported China's then-enemy Vietnam and blamed China for supporting Afghan anti-communist militants.China responded to the Soviet war in Afghanistan by supporting the mujahideen and ramping up their military presence near Afghanistan in Xinjiang.