Trump on Monday committed the United States to an open-ended conflict in Afghanistan, signalling he would dispatch more troops to America's longest war and vowing "a fight to win".
Trump insisted that others - the Afghan government, India, Pakistan, and NATO allies - step up their own commitment to resolving the 16-year conflict, but he saved his sharpest words for Pakistan.
Senior US officials warned security assistance for Pakistan could be reduced unless the nuclear-armed nation cooperated more in preventing terrorists from using safe havens on its soil.
Critics say Pakistan sees terrorists such as the Taliban as useful tools to limit the influence of India. Pakistan denies allowing terrorists refuge on its territory, saying it takes action against all groups.
Asked about Trump's speech, Chinese Foreign Ministry spokeswoman Hua Chunying said Pakistan was on the front line in the struggle against terrorism and had made "great sacrifices" and "important contributions" in the fight.
"We are happy to see Pakistan and the United States carry out anti-terror cooperation on the basis of mutual respect, and work together for security and stability in the region and world."
China and Pakistan consider each other "all-weather friends" and have close diplomatic, economic and security ties.
China has its own security concerns in the region, in particular any links between terrorists in Pakistan and Afghanistan and Islamist groups China blames for violence in its far western region of Xinjiang.
"We hope the relevant U.S. policies can help promote the security, stability and development of Afghanistan and the region," Hua said.
Follow NDTV for latest election news and live coverage of assembly elections 2019 in Maharashtra and Haryana.
Subscribe to our YouTube channel, like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.