Kabul: Afghan President Ashraf Ghani on Monday signed a decree to release Taliban prisoners demanded by the militants.
It was not immediately clear when the release would happen.
The Taliban had demanded the release of the last 400 of 5,000 in total as a condition for joining the peace talks.
The Afghan government will start releasing the 400 Taliban prisoners within two days.
US Special Envoy Zalmay Khalilzad, who reached an agreement with the Taliban in February for the withdrawal of the last US troops, welcomed the development, having spent months trying to bring the militant movement to the negotiating table with the government.
“In the next few days, we expect the completion of prisoner releases, then travel of the Islamic Republic team to Doha, & from there the immediate start of intra-Afghan negotiations,” he said on Twitter.