The UK will work together with Pakistan on matters of shared concern, including providing humanitarian support to the people of Afghanistan and preventing the war-torn country from becoming a place where terrorism flourishes, a top British official said here on Wednesday.

UK Prime Minister’s Special Representative for Afghanistan and Pakistan Nigel Casey said Britain was committed to doing everything it can to ensure stability in Afghanistan after the withdrawal of US troops in August.

Casey, who is in Pakistan for a three-day visit to Islamabad and Karachi, discussed the humanitarian situation in Afghanistan with Pakistan’s civil and military leaders, the British High Commission said.

Casey held meetings with Chief of Army Staff Gen. Qamar Bajwa, National Security Adviser Moeed Yusuf, Foreign Secretary Sohail Mahmood, and Pakistan’s Special Representative for Afghanistan, Muhammad Sadiq, to cover matters related to Afghanistan.

“He discussed the humanitarian situation in Afghanistan, for which the UK has already pledged 50-million-pound of funding for 2.5 million Afghans, most of them women and girls, drawn from the UK’s 286-million-pound aid commitment to Afghanistan this year,” it said in a statement.

Casey also discussed areas of mutual concern, including inclusive politics, women’s rights, and the security situation in his meeting, it said.