 China responded to the Soviet invasion of Afghanistan by supporting the Afghan Mujahideen and ramping up their military presence near Afghanistan in Xinjiang.China acquired military equipment from the United States to defend itself from Soviet attack.China moved its training camps for the Mujahideen from Pakistan into China itself.