US President Joe Biden has said that Afghans "are going to have to decide their future" as Afghan President Ashraf Ghani visited the White House.
Mr Biden promised continued support for the country, even though US and Nato troops are set to finish their withdrawal on 11 September.
It comes after Islamist Taliban fighters captured dozens of districts in a recent offensive.
Earlier this week the UN expressed alarm at their gains.
The meeting came the day after the US announced plans to evacuate thousands of Afghans who worked for the US military ahead of the withdrawal. Many fear reprisals from the Taliban.