The Taliban's takeover of Kabul has deepened the mutual distrust between the US and Pakistan, two putative allies who have tangled over Afghanistan. But both sides still need each other.
With the Biden administration looking for new ways to stop terrorist threats in Afghanistan, it will likely look again to Pakistan, which remains critical to US intelligence and national security because of its proximity to Afghanistan and connections to the Taliban leaders now in charge.
Over two decades of war, American officials accused Pakistan of playing a double game by promising to fight terrorism and cooperate with Washington while cultivating the Taliban and other extremist groups that attacked US forces in Afghanistan.
Islamabad, meanwhile, pointed to what it saw as failed promises of a supportive government in Kabul after the US drove the Taliban from power following the September 11, 2001, attacks as extremist groups took refuge in eastern Afghanistan and launched deadly attacks throughout Pakistan.
But the US wants Pakistani cooperation in counterterrorism efforts and could seek permission to fly surveillance flights into Afghanistan or other intelligence cooperation. And Pakistan wants US military aid and good relations with Washington, even as its leaders openly celebrate the Taliban's rise to power.
Also Read | Pakistan is 'arsonist' disguising itself as 'fire-fighter': India's strong Right of Reply at UNGA
“Over the last 20 years, Pakistan has been vital for various logistics purposes for the US military. What's really been troubling is that, unfortunately, there hasn't been a lot of trust,” said US Rep. Raja Krishnamoorthi, an Illinois Democrat who sits on the House Intelligence Committee. “I think the question is whether we can get over that history to arrive at a new understanding.”
Former diplomats and intelligence officers from both countries say the possibilities for cooperation are severely limited by the events of the last two decades and Pakistan's enduring competition with India.
The previous Afghan government, which was strongly backed by New Delhi, routinely accused Pakistan of harbouring the Taliban. The new Taliban government includes officials that American officials have long believed are linked to Pakistan's spy agency, the Inter-Services Intelligence.
Husain Haqqani, a former Pakistani ambassador to the US, said he understood “the temptation of officials in both countries to try and take advantage of the situation” and find common ground. But Haqqani said he expected Pakistan to give “all possible cooperation to the Taliban”.
“This has been a moment Pakistan has been waiting for 20 years,” said Haqqani, now at the Hudson Institute think tank. “They now feel that they have a satellite state."
US officials are trying to quickly build what President Joe Biden calls an “over the horizon” capacity to monitor and stop terrorist threats.
Without a partner country bordering Afghanistan, the US has to fly surveillance drones long distances, limiting the time they can be used to watch over targets. The US also lost most of its network of informants and intelligence partners in the now-deposed Afghan government, making it critical to find common ground with other governments that have more resources in the country.
Pakistan could be helpful in that effort by allowing “overflight” rights for American spy planes from the Persian Gulf or permitting the US to base surveillance or counterterrorism teams along its border with Afghanistan. There are few other options among Afghanistan's neighbours. Iran is a US adversary. And Central Asian countries north of Afghanistan all face varying degrees of Russian influence.
There are no known agreements so far. CIA Director William Burns visited Islamabad earlier this month to meet with Gen Qamar Javed Bajwa, Pakistan's army chief, and Lt Gen Faiz Hameed, who leads the ISI, according to a Pakistani government statement.
Burns and Hameed have also separately visited Kabul in recent weeks to meet with Taliban leaders. The CIA declined to comment on the visits.
Pakistani Foreign Minister Shah Mahmood Qureshi noted this week that Islamabad had cooperated with US requests to facilitate peace talks before the Taliban takeover and that it had agreed to US military requests throughout the war.
“We have often been criticized for not doing enough,” Qureshi told The Associated Press on Wednesday. “But we've not been appreciated enough for having done what was done.”
Qureshi would not directly answer whether Pakistan would allow the basing of surveillance equipment or overflight of drones.
“They don't have to be physically there to share intelligence,” he said of the US. “There are smarter ways of doing it."
The CIA and ISI have a long history in Afghanistan, dating back to their shared goal of arming bands of mujahedeen — “freedom fighters” — against the Soviet Union's occupation in the 1980s. The CIA sent weapons and money into Afghanistan through Pakistan.
Those fighters included Osama bin Laden. Others would become leaders of the Taliban, which emerged victorious from a civil war in 1996 and gained control of most of the country. The Taliban gave refuge to bin Laden and other leaders of al-Qaida, which launched deadly attacks on Americans abroad in 1998 and then struck the US on September 11, 2001.
After 9/11, the US immediately sought Pakistan's cooperation in its fight against al-Qaida and other terrorist groups.
Declassified cables published by George Washington University's National Security Archive show officials in President George W Bush's administration made several demands of Pakistan, from intercepting arms shipments heading to al-Qaida to providing the US with intelligence and permission to fly military and intelligence planes over its territory.
The CIA would carry out hundreds of drone strikes launched from Pakistan targeting al-Qaida leaders and others alleged to have ties to terrorist groups.
Hundreds of civilians died in the strikes, according to figures kept by outside observers, leading to widespread protests and public anger in Pakistan.
Pakistan, meanwhile, continued to be accused of harboring the Taliban after the US-backed coalition drove the group from power in Kabul. And bin Laden was killed in 2011 by US special forces in a secret raid on a compound in the Pakistani city of Abbottabad, home to the country's military academy.
The bin Laden operation led many in the US to question whether Pakistan had harbored bin Laden and angered Pakistanis who felt the raid violated their sovereignty.
For years, CIA officials tried to confront their Pakistani counterparts after collecting more proof of Pakistani intelligence officers helping the Taliban move money and fighters into a then-growing insurgency in neighbouring Afghanistan, said Douglas London, who oversaw the CIA's counterterrorism operations in South Asia until 2018.
“They would say, You just come to my office, tell me where the location is,'” he said. “They would just usually pay lip service to us and say they couldn't confirm the intel.”
London, author of the forthcoming book “The Recruiter,” said he expected American intelligence would consider limited partnerships with Pakistan on mutual enemies such as al-Qaeda or Islamic State-Khorasan, which took responsibility for the deadly suicide attack outside the Kabul airport last month during the final days of the US evacuation.
The risk, London said, is at times “your partner is as much of a threat to you as the enemy who you're pursuing”.