A seven-day "reduction in violence" between the US and the Afghan Taliban will begin on Saturday, officials say.
The partial truce is scheduled to come into effect at midnight local time, a spokesman for Afghanistan's National Security Council told the BBC.
If successful, the two sides will then sign the first phase of a deal aimed at ending nearly two decades of conflict.
The agreement comes after more than a year of talks between American and Afghan Taliban representatives.
Under the terms of the partial truce, it is understood that no major offensive operations will be launched against the Taliban, Afghan or international forces.
The midnight start for the week-long arrangement was confirmed to the BBC by a senior Taliban official.
The BBC's Afghanistan correspondent, Secunder Kermani, says the move is seen as an opportunity for the Taliban's leadership to show they can control their fighters on the ground.
It could also pave the way for talks between Taliban negotiators and Afghan politicians, our correspondent adds.
The US, which has spent billions of dollars since 2001 fighting the Taliban insurgency in Afghanistan, has yet to comment on the announcement.
How did the peace talks come about?
In December 2018, the Taliban announced they would meet US officials to try to find a "roadmap to peace".
But the militants continued to refuse to hold official talks with the Afghan government, whom they dismissed as American "puppets".
Following nine rounds of US-Taliban talks in Qatar, the two sides seemed close to an agreement.
Washington's top negotiator announced in September that the US would withdraw 5,400 troops from Afghanistan within 20 weeks as part of a deal agreed "in principle" with Taliban militants.
But days later, Mr Trump said the talks were "dead", after the militant group admitted to killing a US soldier.
"They thought that they had to kill people to put themselves in a little better negotiating position", he told reporters, calling the attack "a big mistake".
In the months since the deal collapsed, there has so far been no let-up in fighting. The Taliban has warned that the US would "lose the most" by cancelling the talks.
Since 2011, Qatar has hosted Taliban leaders who have moved there to discuss peace in Afghanistan.
It has been a difficult process. A Taliban office was opened in 2013, but closed the same year amid rows over flags. Other attempts at talks have stalled.
Qatar was also the host of a major conference in July that agreed a roadmap for Afghan peace. Significantly it included both the Taliban and Afghan government officials, though the latter attended in a "personal capacity".
What's the background to the Afghan war?
It began when the US launched air strikes one month following the 11 September 2001 attacks and after the Taliban had refused to hand over the man behind them, Osama Bin Laden.
The US was joined by an international coalition and the Taliban were quickly removed from power. However, they later emerged as an insurgent force and continued deadly attacks, destabilising subsequent Afghan governments.
The international coalition ended its combat mission in 2014, staying only to train Afghan forces. But the US continued its own, scaled-back combat operation, including air strikes.
The Taliban has, however, continued to gain momentum - in 2018, the BBC found that Taliban militants were active across 70% of Afghanistan.
Nearly 3,500 members of the international coalition forces have died in Afghanistan since the 2001 invasion, more than 2,300 of them American.
The figures for Afghan civilians, militants and government forces are more difficult to quantify. In a February 2019 report, the UN said that more than 32,000 civilians had died.
The Watson Institute at Brown University says 58,000 security personnel and 42,000 opposition combatants have been killed.
Who are the Taliban?
The Taliban, or "students" in the Pashto language, emerged in the chaos that followed the withdrawal of Soviet troops in 1989.
They took Kabul in 1996 and were in charge of most of the country within two years, practising their own austere version of Sharia, or Islamic law.
Before being removed from power they banned TV, music and cinema, enforced strict dress codes, severely curtailed female education and introduced brutal punishments.
Mullah Omar continued to lead the Taliban after they were ousted. He died in 2013 although the Taliban did not confirm it for two years.