Worried about militants sneaking into a restive Chinese region from war-torn Afghanistan, Beijing is in talks with Kabul over the construction of a military base, Afghan officials say, as it seeks to shore up its fragile neighbour.
The army camp will be built in Afghanistan's remote and mountainous Wakhan Corridor, where witnesses have reported seeing Chinese and Afghan troops on joint patrols.
The freezing, barren panhandle of land - bordering China's tense Xinjiang region - is so cut off from the rest of Afghanistan that many inhabitants are unaware of the Afghan conflict, scraping out harsh but peaceful lives.
However they retain strong links with neighbours in Xinjiang, and with so few travellers in the region local interest in the Chinese visitors has been high, residents told AFP on a recent visit there.
China's involvement in the base comes as President Xi Jinping seeks to extend Beijing's economic and geopolitical clout.
The Chinese are pouring billions of dollars into infrastructure in South Asia. With Afghanistan's potential to destabilise the region, analysts said any moves there would be viewed through the prism of security.
Beijing fears that exiled Uighur members of the East Turkestan Islamic Movement (ETIM) are passing through the Wakhan into Xinjiang to carry out attacks.
It also worries that Islamic State group militants fleeing Iraq and Syria could cross Central Asia and Xinjiang to reach Afghanistan, or use the Wakhan to enter China, analysts say.
Afghan and Chinese officials discussed the plan in December in Beijing, but details are still being clarified, Afghan defence ministry deputy spokesman Mohammad Radmanesh said.
"We are going to build it (the base) but the Chinese government has committed to help the division financially, provide equipment and train the Afghan soldiers," he told AFP recently.
A senior Chinese embassy official in Kabul would only say Beijing is involved in "capacity-building" in Afghanistan.
Nato's US-led Resolute Support mission in Afghanistan declined to comment. But US officials have previously welcomed China's role in Afghanistan, noting they share the same security concerns.