The Taliban have announced a ceasefire with the Afghan government that will take effect when the Muslim festival of Eid al-Fitr begins on Sunday.
It follows a rise in attacks by the hardline Islamist group against government troops in recent weeks.
President Ashraf Ghani welcomed the announcement, and said his soldiers would respect the terms of the truce.
The three-day ceasefire is likely to raise hopes of a longer-term reduction in violence in the country.
But a similar ceasefire was announced for same festival in 2018 and was not extended.
"Do not carry out any offensive operations against the enemy anywhere. If any action is taken against you by the enemy, defend yourself," Taliban spokesman Zabihullah Mujahid said on Saturday.
He added that the ceasefire had been declared solely for Eid al-Fitr, which marks the end of the holy month of Ramadan.
"I welcome the ceasefire announcement," Mr Ghani wrote on Twitter shortly after. "I have instructed [the military] to comply with the three-day truce and to defend only if attacked."
It is only the third time that the Taliban have declared a temporary truce since the conflict began.
Earlier this year, the group signed an agreement with the US setting out a timetable for the withdrawal of foreign forces from the country. But while they have stopped attacks against international troops they have continued targeting Afghan security forces.
Negotiations between the two sides have been delayed, with the peace process faltering. This brief reprieve in violence could revive some of the cautious hope Afghans had begun to feel: that an end to the fighting might eventually be possible.
What's the bigger picture?
Afghans and international observers had hoped for a reduction in violence between the two sides following the signing of a troop withdrawal agreement between the Taliban and the US in February.
But further talks have stalled over a prisoner swap, and attacks on government forces have escalated in recent weeks.
Media playback is unsupported on your device
An attack on a maternity ward in the capital, Kabul, earlier this month prompted widespread condemnation. While the Taliban denied involvement, it prompted President Ghani to order the resumption of offensive operations against them as well as other groups.
He accused the militants of ignoring repeated calls for a reduction in violence.
Last month, the Taliban rejected a government call for a ceasefire across Afghanistan for Ramadan. They said it was "not rational" and ramped up attacks on Afghan forces.
Earlier this month, Afghan President Ashraf Ghani and his rival Abdullah Abdullah signed a power-sharing deal, ending months of Read More – Source
[contf] [contfnew]
bbc
[contfnewc] [contfnewc]