WASHINGTON — Eager to put the long and divisive Iraq war to rest, President Barack Obama declared Monday "those days are over" with the last American troops heading home, but he pledged the United States would remain committed to the fledgling government they leave behind.
"A war is ending," the president said, standing with Iraqi Prime Minister Nouri al-Maliki at the White House. U.S. troops are leaving "with honor and with their heads held high," said Obama, who strongly opposed the war as a candidate for the White House.
The last American troops are to be out of Iraq by Dec. 31. Thousands of others are still in Afghanistan.
Just 6,000 remain in Iraq, down from 170,000 at the war's peak in 2007.
The withdrawal will cap a war in which nearly 4,500 Americans were killed, roughly 32,000 were wounded, hundreds of billions of dollars were spent and the American political debate was consumed until economic woes brought attention back home.
Obama had already said weeks ago that he was pulling all troops by year's end, leaving his appearance with Maliki to focus instead on what's next — a relationship both leaders described as rich in shared interests, from education to oil, politics to security.
To the Iraqi people, who still face massive challenges in rebuilding a society ripped apart by nearly nine years of war, Obama said: "You will not stand alone."
The United States, in fact, needs the help of Iraq in dealing with the volatile Middle East and two of its neighbors in particular, Iran and Syria. In getting out of Iraq, Obama emphasized that "our strong presence in the Middle East endures" and that the United States won't soften in its defense of its interests.
In the midst of a re-election run, Obama is using the war's end to both honor the military's sacrifice and to remind the nation the unpopular war is ending on his watch. He is to deliver his war-is-over message in TV interviews today and then again on Wednesday in remarks to troops at Fort Bragg, N.C.
Obama opposed the war from the start and eventually rode that stand to the White House.
In a 2002 speech during the months before the U.S.-led invasion of Iraq began, when Obama was a U.S. senator from Illinois, he said: "What I am opposed to is a dumb war. What I am opposed to is a rash war."
On Monday, speaking as a commander in chief, Obama put the focus on Iraq's future.
"I think history will judge the original decision to go into Iraq," Obama said. What's clear, he added, is that because of the huge sacrifices by American soldiers and civilians and the courage of the Iraqi people, "we have now achieved an Iraq that is self-governing, that is inclusive and that has enormous potential."
Said Maliki: "Anyone who observes the nature of the relationship between the two countries will say that the relationship will not end with the departure of the last American soldier."
Early signs of how Iraq may orient itself could come from how it handles troubles in Syria, where the United Nations says 4,000 people have been killed in a government crackdown. The crisis has exposed differences in the U.S. and Iraqi positions: Obama has said Syrian President Bashar Assad must step down. Maliki has not.
"I do not have the right to ask a president to abdicate," said Maliki. He suggested that Assad's removal could lead to a civil war in Syria that could spread across the region and be difficult to control, calling for some other solution that would "avoid all the evils and the dangers."
About 1 million U.S. troops have cycled through Iraq since the war began.
After their meetings at the White House, Obama and Maliki paid respects to the fallen at Arlington National Cemetery.
At times, Obama's language had the echoes of President George W. Bush, particularly in the potential for Iraq to help transform its part of the world. "Our goal is simply to make sure that Iraq succeeds, because we think a successful, democratic Iraq can be a model for the entire region," Obama said.
To all those who served in Iraq and to their families, Obama said the United States maintains a "moral obligation to all of them — to build a future worthy of their sacrifice."