In a major policy speech on Thursday, Obama narrowed the scope of the targeted-killing drone campaign against al Qaeda and its allies and took steps toward closing the Guantanamo Bay military prison in Cuba.
He acknowledged the past use of "torture" in U.S. interrogations; expressed remorse over civilian casualties from drone strikes; and said that the Guantanamo detention facility "has become a symbol around the world for an America that flouts the rule of law."
After launching costly wars in Iraq and Afghanistan, the United States is tiring of conflict. While combating terrorism is still a high priority for the White House, polls show by large margins that Americans' main concerns are the economy and domestic concerns such as healthcare.
"We have now been at war for well over a decade," Obama said near the start of his address. Toward the end, he added: "But this war, like all wars, must end."
Though aimed first at a domestic audience, Obama's speech at Washington's National Defense University was also the latest milestone in his campaign to reshape the global image of the United States - particularly in the Islamic world.
But he faces obstacles from opponents in Congress who will try to block the closure of Guantanamo prison and reject his call to repeal the Authorization for Use of Military Force passed right after the September 11, 2001, attacks. The law is the legal basis for much of the "war on terror."
Faced with criticism about civilian casualties in attacks by unmanned aerial vehicles, Obama said the United States would only use those drone strikes when a threat was "continuing and imminent," a nuanced change from the previous policy of launching strikes against a significant threat.
Under new presidential guidance signed by Obama this week, the Defense Department will also take over some lethal drone operations from the CIA. [ID:nL2N0E41XH]
That would subject drone attacks to more scrutiny from Congress and might lead to the Pentagon taking over drone operations in Yemen, but not in Pakistan, where the CIA is likely to continue to run the program.
With al Qaeda leader Osama bin Laden killed in a U.S. raid in 2011, a number of the group's top members taken out in drone strikes, and the U.S. military role in Afghanistan winding down, Obama made clear it was time for a policy shift.
"Beyond Afghanistan, we must define our effort not as a boundless 'global war on terror' - but rather as a series of persistent, targeted efforts to dismantle specific networks of violent extremists that threaten America," Obama said.
Pakistan said it appreciated Obama's acknowledgement that force alone did not work, adding that the root causes of terrorism had to be addressed.
"On the use of drone strikes, the government of Pakistan has consistently maintained that the drone strikes are counter-productive, entail loss of innocent civilian lives, have human rights and humanitarian implications and violate the principles of national sovereignty, territorial integrity and international law," the Foreign Ministry said in a statement.
Human rights groups mostly welcomed Obama's assertion that America could not remain on "a perpetual war-time footing," but some activists said he was not going far enough.
Republican opponents warned against being too quick to declare al Qaeda a spent force.
"The president is correct to highlight the successes in America's war on terror that have occurred since September 11, 2001," said Senator Marco Rubio, a Florida Republican mentioned as a possible U.S. presidential candidate in 2016.
"He is wrong, however, to understate the continued threat to the U.S. homeland," Rubio said in a statement.
'SPECIFIC AND RESTRICTIVE'
The new U.S. drone rules are likely to reduce "signature" drone strikes, which target suspicious-looking groups. Those attacks are blamed for many civilian casualties in Pakistan's tribal areas near Afghanistan and in Yemen.
Obama "has clearly raised the bar significantly for the use of drone strikes," said John Bellinger, former State Department legal adviser in President George W. Bush's administration.
"The standard for targeting is now the same for Americans and non-Americans - it must be a continuing and imminent threat of violence to Americans. And there must be a near certainty that no non-combatants will be killed," he said.
The number of drone strikes has dropped in the past year after peaking in the middle of Obama's first term.
The New America Foundation's widely cited drone attack database shows there have been 355 drone strikes in Pakistan since 2004 and more than 60 in Yemen since 2009.
Despite the new limits on drone attacks, pilotless aircraft are increasingly playing a role in the armoury of the United States and other countries.
While Obama largely has a free hand as commander in chief to set U.S. drone policy, Congress has used its power of the purse to block him from closing Guantanamo.
Obama has been frustrated by his inability to make good on his 2008 campaign pledge to shut the prison, which was opened by his predecessor, President George W. Bush, to hold men rounded up on suspicion of involvement with al Qaeda and the Taliban after the September 11 attacks.
A hunger strike by 103 of the 166 detainees - 32 of whom have lost so much weight that they are being force-fed - has put pressure on Obama to take action.
"There is no justification beyond politics for Congress to prevent us from closing a facility that should never have been opened," Obama said.
Obama's latest Guantanamo proposals will likely meet much of the same resistance his earlier ones did from Republicans and some Democrats who do not want to fund the transfer of detainees away from Cuba.
But two Senate Republicans, John McCain of Arizona and Lindsey Graham of South Carolina, said they could support closing Guantanamo and moving some of its functions to the United States if Obama presented a workable plan.
Obama suggested a suitable site could be found on the U.S. mainland to hold military tribunals.
McCain and Graham have proposed that trials could be held at Charleston Naval Yard in South Carolina. A supermax prison in Illinois has also been proposed in the past for housing Guantanamo inmates.
While he cannot shut Guantanamo on his own, Obama has announced steps aimed at getting some prisoners out. He lifted a moratorium on detainee transfers to Yemen out of respect for that country's reforming government. Yemenis make up the largest group of prisoners.
Of the 86 detainees who have been cleared for transfer or release, 56 are from Yemen. But al Qaeda has a presence in the country and Washington will likely want guarantees that the prisoners will not take up arms against the United States after they are sent home.