The new Afghan government has signed a deal with the United States to keep troops in the country.
Afghan President Ashraf Ghani welcomed the Bilateral Security Agreement (BSA), saying his country has “regained its sovereignty as a power."
US President Barack Obama said it was a "historic day" in US-Afghan relations.
"We look forward to working with this new government to cement an enduring partnership that strengthens Afghan sovereignty, stability, unity, and prosperity," he added.
The deal allows for foreign forces to stay in the country to conduct "counter-terror operations" and support and train Afghan troops. Another agreement signed with Nato on Tuesday, will see troops from several countries, including Germany, Italy and Turkey contribute another 3,000 troops.
Previous president, Hamid Karzai, had refused to sign the deal, citing security fears.