Beijing has become increasingly concerned about security in restive Xinjiang, where it says Muslim extremists receive help from militants in neighbouring countries.
China says separatists from the region, home to a large Muslim Uighur minority, launched a terrorist attack in the southwestern city of Kunming last week, killing at least 29 people and injuring about 140.
China will work with the international community for political reconciliation in Afghanistan and support reconstruction, Foreign Minister Wang Yi said at a press briefing during an annual session of China's largely rubber-stamp parliament.
"We will also work with Afghanistan and other neighbours to resolutely fight all terrorist forces," he said.