China wants to have deeper military ties with Afghanistan, including counterterrorism intelligence cooperation and joint drills, a senior Chinese officer told a visiting Afghan envoy.

China is working with Pakistan and the United States to broker peace talks to end a Taliban insurgency that has raged for 15 years in Afghanistan, but last month the militants refused to take part.

The U.S.-led NATO mission ceased combat operations at the end of 2014, and has withdrawn most of its forces. China says it does not seek to fill a void left by their withdrawal.