Washington’s Peace Envoy, Zalmay Khalilzad, who served as America’s first ambassador to Afghanistan after the 2001 U.S. invasion, spent the past 17 months running on-again, off-again talks with the Taliban to hammer out the agreement.

The U.S.-Taliban deal signed Saturday in the Middle Eastern State of Qatar envisions the release of up to 5,000 Taliban prisoners by the Afghan government ahead of talks between Afghan factions meant to begin March 10 in the Norwegian capital of Oslo. The Taliban would release up to 1,000 prisoners.

Ghani told a news conference in the Afghan capital of Kabul on Sunday that this wasn’t a promise the United States could make. He said the release of any prisoners was a decision for his government to take and that he wasn’t ready to release prisoners before the start of negotiations.

“The request has been made by the United States for the release of prisoners and it can be part of the negotiations but it cannot be a precondition,” Ghani said.

The U.S.-Taliban deal is seen as a historic opportunity to extricate the United States from Afghanistan, a nation convulsed by conflict since the Soviet invasion in December 1979. Yet it could also unravel quickly, particularly if the Taliban fail to deliver on a promise that no terror attacks would be launched from Afghan soil.

The intra-Afghan talks between squabbling political factions and rival Taliban in Afghanistan are even more intricate — even if a potential failure might not slow the withdrawal of American forces.

In an interview with The Associated Press, Qatari Foreign Minister Mohammad bin Abdulrahman Al Thani said he considered a prisoner exchange an important confidence-building measure.

“Everything is interconnected,” he said Sunday about the agreement’s 14-month timeframe.

“The prisoner exchange will be one of the first confidence-building measures, so it will remain a very critical step that we need to push forward,” he added.

Morning Defense The latest news in defense policy and politics. Sign Up Loading By signing up you agree to receive email newsletters or alerts from POLITICO. You can unsubscribe at any time. This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

U.S. officials, travelling with Secretary of State Pompeo on his return to America, noted that the agreement stipulates “up to” 5,000 prisoners would be released, without referring specifically to Ghani’s statements.

President Donald Trump told reporters Saturday at the White House that he will be “meeting personally with Taliban leaders in the not-too-distant future,” and described the group as “tired of war.”

He did not say where or why he plans to meet with Taliban leaders. He said he thinks they are serious about the deal they signed but warned that if it fails, the U.S. could restart combat.

“We think we’ll be successful in the end,” he said, referring to all-Afghan peace talks and a final U.S. exit.

But he also warned: “If bad things happen, we’ll go back” in with military firepower.

Many Afghans, however, have welcomed the possibility of peace.

Afghans in eastern Nangarhar posted pictures of dozens of men dancing in the street to celebrate the signing. In eastern Khost province, a Taliban stronghold, the night sky was alight with red tracer bullets fired by celebrating residents. Footballers in southern Helmand Province, also a Taliban stronghold that has seen heavy violence, began a three-day soccer tournament to celebrate the signing.

