Underscoring the continuing instability despite a 12-year deployment by US-led NATO combat troops, two Americans were slightly injured in an attack on a US consulate vehicle in Afghanistan's western city of Herat on Wednesday.
Speaking in the White House Rose Garden on Tuesday, Obama confirmed that the 32,000-strong US deployment in Afghanistan would be scaled back to around 9,800 by the start of 2015.
Those forces would be halved by the end of 2015 before eventually being scaled back to a normal embassy presence with a security assistance component by the end of 2016.
"We're finishing the job we started," Obama said, as he outlined the end of US involvement in a conflict which began when American-led forces invaded Afghanistan to oust the Taliban and hunt Al-Qaeda leader Osama bin Laden after the 2001 attacks on New York and Washington.
US combat operations would draw to a close at the end of 2014, meaning US troops would no longer patrol Afghan cities, towns or valleys from next year, Obama said.
The drawdown relies on Afghanistan signing a long-delayed Bilateral Security Agreement laying out the terms and conditions of the US military presence in the country after this year.
Afghanistan's outgoing president Hamid Karzai has refused to sign the agreement, but both of the candidates vying to be his successor in next month's run-off vote -- Ashraf Ghani and Abdullah Abdullah -- have said they will sign the deal.
"So I'm hopeful we can get this done," Obama said.
- 'Afghanistan is not ready' -
The announcement was met with dismay by some observers in Afghanistan, where there was a widespread belief that a foreign presence was likely to continue for up to a decade.
"Afghanistan is not ready," said Mia Gul Wasiq, a security analyst. "If they withdraw irresponsibly, Afghanistan will become like Iraq.
"We have not been able to establish a strong government... the US has not done its job, that was to root out terrorism from Afghanistan. The war and terrorism is still there, their job is not done. So their plan and timetable on paper is not practical."
An unidentified guman on a motorcyle fired a rocket-propelled grenade at the US consulate vehicle in Herat, an assault that highlighted the insurgents' ability to attack high-profile targets.
Obama sharply stepped up the US involvement in Afghanistan after his 2008 election victory, boosting troop numbers there even as he brought the parallel US operation in Iraq to a close.
He also massively increased the number of covert US drone strikes on militant targets in neighbouring Pakistan, and ordered the May 2011 US commando raid that killed bin Laden there.
As he announced the end of US involvement in a conflict which has claimed the lives of more than 2,300 US personnel, Obama said future security would hinge on the Afghans themselves.
"We have to recognise Afghanistan will not be a perfect place," he said. "And it is not America's responsibility to make it one. The future of Afghanistan must be decided by Afghans."
US troops remaining in Afghanistan after 2014 would be available to train Afghan forces while supporting counter-terrorism operations against Al-Qaeda remnants, Obama said.
The withdrawal of US troops from Afghanistan would herald a "new chapter in American foreign policy," Obama said.
"(It) will allow us to redirect some of the resources saved by ending these wars to respond more nimbly to the changing threat of terrorism," he said.
"I think Americans have learned that it's harder to end wars than it is to begin them."
A NATO spokeswoman, Oana Lungescu, said Obama's statement was consistent with plans by the Atlantic alliance for a training and support mission beyond the end of the year.
"I expect NATO defence ministers will discuss the completion of our ISAF combat mission and preparations for the new mission when they meet in Brussels next week," she said.
Obama made an unannounced visit to US forces in Afghanistan on Sunday, spending four hours at Bagram, one of the secure bases that will house support troops after their combat mission ends.