Taliban fighters, whom US-led forces spent billions of dollars trying to defeat, are now openly active in 70% of Afghanistan, a BBC study has found.
Months of research across the country show how areas the Taliban threaten or control have surged since foreign combat troops left in 2014.
The Afghan government played down the report, saying it controls most areas.
But recent attacks claimed by Taliban and Islamic State militants have killed scores in Kabul and elsewhere.
Afghan officials and US President Donald Trump responded by ruling out any talks with the Taliban. Last year Mr Trump announced the US military would stay in the country indefinitely.
How was the research carried out?
The BBC investigation – conducted during late 2017 – provides a rare snapshot of the security situation in every Afghan district between 23 August and 21 November.