The American President has confirmed plans to extend the US Army stay in Afghanistan beyond 2016, in a shift in policy.
Speaking at the White House, he said the US would keep 5,500 troops in the country when he leaves office in 2017.
Originally all but a small embassy-based force were due to leave by the end of next year.
But the US Army has however said that more America troops will be needed to help the Afghan forces to counter a growing Taliban threat in Afghanistan.
There are currently 9,800 US troops stationed in Afghanistan.
The US Army will be stationed in four locations – Kabul, Bagram, Jalalabad and Kandahar.
Announcing the plan on Thursday, President Obama said the troop extension could “make a real difference” for Afghanistan and Afghan security forces, which he acknowledged were “not as strong” as they needed to be.
He said the ending of Nato combat operations in December last year had come at a price, with many Afghan troops and civilians killed since the Taliban stepped up its insurgency.
“It’s the right thing to do,” the president said about the policy change. “As commander in chief I will not allow Afghanistan to be used as safe haven for terrorists to attack our nation again.”
For the Taliban, he continued, it should be clear that the only way to achieve a full pullout of US Army is through a lasting settlement with the Afghan government.
He described the mission in Afghanistan as “vital to US national security interests”.