Pakistani Prime Minister Imran Khan accused the United States of seeing his country as useful only in the context of the "mess" it is leaving behind in Afghanistan after 20 years of fighting.
Washington has been pressing Pakistan to use its influence over the Taliban to broker an elusive peace deal as negotiations between the insurgents and Afghan government have stalled, and violence in Afghanistan has escalated sharply.
"Pakistan is just considered only to be useful in the context of somehow settling this mess which has been left behind after 20 years of trying to find a military solution when there was not one," Khan told foreign journalists at his home in Islamabad.
The United States will pull out its military by Aug 31, 20 years after toppling the Taliban government in 2001. But, as the United States leaves, the Taliban today controls more territory than at any point since then.
Kabul and several Western governments say Pakistan's support for the insurgent group allowed it to weather the war.
The charge of supporting the Taliban despite being a US ally has long been a sore point between Washington and Islamabad. Pakistan denies supporting the Taliban.
Khan said Islamabad was not taking sides in Afghanistan.
"I think that the Americans have decided that India is their strategic partner now, and I think that's why there's a different way of treating Pakistan now," Khan said.
A political settlement in Afghanistan was looking difficult under current conditions, Khan added.
He said he tried to persuade Taliban leaders when they were visiting Pakistan to reach a settlement.
"The condition is that as long as Ashraf Ghani is there, we (Taliban) are not going to talk to the Afghan government," Khan said, quoting the Taliban leaders as telling him.
Peace talks between the Taliban, who view Ghani and his government as US puppets, and a team of Kabul-nominated Afghan negotiators started last September but have made no substantive progress.
Representatives of a number of countries, including the United States, are currently in the Qatari capital of Doha talking to both sides in a last-ditch push for a ceasefire.
US forces have continued to use air strikes to support Afghan forces against Taliban advances, but it remains unclear if such support will continue after Aug 31.
Khan said Pakistan had "made it very clear" that it does not want any American military bases in Pakistan after US forces exit Afghanistan.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
8 Killed After Bus Carrying 47 Overturns In US State Of Mississippi: Report Donald Trump "Disrespected Sacred Ground' At US Military Cemetery: Kamala Harris Top 10 US Universities Based On Forbes Rankings 2024 Manipur Chief Minister Slams Tejashwi Yadav Over "Racist" Jab At Himanta Sarma US Millionaire, Who Died By Suicide, Owed $34 Million With $8,000 In Bank On CCTV, Cops Seen Planting Drugs On Man In Mumbai, Suspended After Probe After Land Invasion And Death From Above, A New Enemy In Gaza - Polio Celebrated "Russian Spy" Whale Hvaldimir Found Dead In Norway: Report Israeli Army Announces Death Of Soldier During Ongoing Raid In West Bank Track Latest News Live on NDTV.com and get news updates from India and around the world.