The first peace talks between the Afghan government and the Taliban are due to begin in the Gulf state of Qatar on Saturday, after months of delay.
US Secretary of State Mike Pompeo called the meeting "historic" as he flew to Doha for the opening ceremony.
The talks were due to start after a US-Taliban security deal in February.
But disagreements over a controversial prisoner swap stalled the next stage, as did violence in Afghanistan, where four decades of war are at a stalemate.
A delegation of leading Afghans left Kabul for Doha on Friday – 11 September, the day 19 years ago of the deadly attacks on the US which led to the end of Taliban rule.
The head of the delegation, Abdullah Abdullah, said they were seeking "a just and dignified peace".
On Thursday the Taliban confirmed they would attend, after a final group of six prisoners were released.
What to expect from the talks
These are the first direct talks between the Taliban and representatives of the Afghan government. The militants had until now refused to meet the government, calling them powerless and American "puppets".
The two sides are aiming for political reconciliation and an end to decades of violence, which began with the 1979 Soviet invasion.
The talks were meant to begin in March but were repeatedly delayed by a dispute over the prisoner exchange agreed in the February US-Taliban deal, as well as violence in the country.
The separate but linked US-Taliban agreement set out a timetable for the withdrawal of foreign forces, in exchange for counter-terrorism guarantees.
That agreement took over a year to finalise, and the government-Taliban talks are expected to be even more complicated. Many worry that fragile progress made in women's rights could be sacrificed in the process.
The talks also present a challenge to the Taliban, who will have to bring forward a tangible political vision for Afghanistan. They have so far been vague, stating they wish to see an "Islamic" but also "inclusive" government.
The talks may provide more evidence of how the militant group has changed since the 1990s, when they ruled using a harsh interpretation of Sharia law.
You can feel the buzz in the glittering great halls of the Sheraton Grand Doha hotel: Afghan negotiators, officials, journalists rushing in from their chartered flight from Kabul; foreign diplomats who've spent years inching towards this moment now hurrying to and fro; and a few Taliban slipping through the crowds on the eve of the big day.
It's been a long time coming in a war which exacts such a heavy price. There's anticipation. Apprehension too.
All that's certain is after an opening ceremony with hours of speeches – the "show" as some call it – there will be "Afghan talks."
How long they will talk this time, about what, and in which way, is still uncertain.
Everyone emphasises these are Afghan decisions. And there's no agreement yet, even within each side.
It's the start of a protracted process with no certainty of success. But even a start is something in a war which seems endless.
What was in February's deal?
The US and its Nato allies agreed to withdraw all troops within 14 months, while the Taliban committed not to allow al-Qaeda or any other extremist group to operate in the areas they control.
The US also agreed to lift sanctions against the Taliban and work with the UN to lift its separate sanctions against the group, as well as cutting its troop numbers in the country from about 12,000 to 8,600 and closing several bases.
US-led troops have been present in Afghanistan for nearly two decades, after launching air strikes to oust the Taliban in 2001 following the deadly 9/11 al-Qaeda attacks in New York. The Taliban, who protected al-Qaeda leader Osama Bin Laden, had refused to hand him over.
The Afghan government did not take part in the February accord, but had expected to begin peace talks with the Taliban in March.
The deal also provided for a prisoner swap of about 5,000 Taliban prisoners and 1,000 detained Afghan security personnel to be finalised before the planned start of the March talks.
What's happened since?
Government and Taliban negotiators disagreed over the numbers of prisoners to be freed and who they would be. The continuing violence also held things up.
Some of the men the Taliban wanted freed were commanders believed to have been involved in major attacks.
"We cannot release the killers of our people," a government negotiator said at the time.
According to a report by the Washington Post last month, three Afghans accused of involvement in the deaths of US troops were also a sticking point.
Progress was slow, but in August the Afghan Read More – Source