BAGHDAD — Cheered wildly by U.S. troops, President Barack Obama flew unannounced into Iraq on Tuesday and promptly declared it is time for Iraqis "take responsibility for their country" after America's commitment of six years and thousands of lives.
"You have given Iraq the opportunity to stand on its own as a democratic country," the president said as he made a brief inspection of a war he opposed as candidate and now vows to end as commander in chief. "That is an extraordinary achievement."
A total of 4,266 U.S. troops have lost their lives in Iraq since March 2003, and Obama said American forces had "performed brilliantly ... under enormous strain."
"It is time for us to transition to the Iraqis," he said as an estimated 600 troops cheered. "They need to take responsibility for their country." However, the president added that "there is still a lot of work to do here."
'I love you'
Inside a marble palace built by Saddam Hussein to celebrate Iraq's war victory over Iran, Obama was interrupted repeatedly with cheers from the troops.
"I love you," someone in the crowd shouted out. "I love you back," the commander in chief replied.
Scores of troops held digital cameras above their heads, snapping pictures and recording video. Vice president Joe Biden's son, Capt. Beau Biden, who is serving with the Army National Guard, was among the troops who heard Obama's speech.
During his five-hour stopover, Obama also met with Iraqi Prime Minister Nouri al-Maliki, who said afterward that he had "assured the president that all the progress that has been made in the security area will continue."
Obama said he had "strongly encouraged" the Iraqi leader to take steps to unite political factions, including integrating Sunnis into the government and security forces.
The president said he decided to stop in Iraq on his way home to Washington to thank the troops for their work and to "tell them how grateful we are."
Sgt. First Class Floyd Robinson, 38, from Bessemer, Ala., said he was impressed that Obama had visited Iraq within months of being elected. "Soldiers need to see their commander in chief," Robinson said. "It gives everybody great pride knowing that he just took office, but he still stopped by to say a few words."
Obama's gleaming white and blue Air Force One touched down hours after a car bomb exploded in a Shiite neighborhood of the capital city, a deadly reminder of the violence that still threatens the 139,000 American forces stationed in the country.
The president has already announced plans to withdraw most U.S. combat troops from Iraq by August 2010. However, as many as 50,000 are expected to remain in the country beyond that to perform counterterrorism duties.
Obama also met Tuesday with Gen. Ray Odierno, the top U.S. commander in Iraq, at Camp Victory, which is the largest U.S. military facility in the country.
Obama spoke favorably of political progress being made in Iraq but also expressed concern that recent gains could deteriorate with the upcoming national elections.
"It's important for us to use all of our influence to encourage the parties to resolve these issues in ways that are equitable. I think that my presence here can help do that," he said.
Power-sharing between Shiites and Sunnis, and how to distribute oil revenues, are among the divisive issues.
The visit came at the conclusion of a long overseas trip that included economic and NATO summits in Europe and two days in Turkey .
Shortly before leaving Turkey, the president held out Iraq as an example of the change he seeks in policies inherited from former President George W. Bush.
"Moving the ship of state takes time," he told a group of students in Istanbul. He noted his long-standing opposition to the war, yet said, "Now that we're there," the U.S. troop withdrawal has to be done "in a careful enough way that we don't see a collapse into violence."
In office only 11 weeks, Obama has already announced plans to withdraw most U.S. combat troops on a 19-month timetable. The drawdown is to begin slowly, so American forces can provide security for Iraqi elections, then accelerate in 2010. As many as 50,000 troops are expected to remain in the country at the end of the 19 months to perform counterterrorism duties.
Tuesday's trip was Obama's third to Iraq, and his first since taking office. He met with U.S. commanders and troops last summer while seeking the presidency.
Because of security concerns, the White House made no prior announcement of the visit, and released no advance details for his activities on the ground.
Obama walked off his plane wearing a business suit, shook hands with Odierno, then stepped into an SUV for a brief ride to Camp Victory.
En route to Iraq, White House press secretary Robrt Gibbs said Obama chose Iraq rather than Afghanistan for a war-zone visit in part because it was near Turkey and also because progress "lies in political solutions."
It was the last stop of an eight-day trip to Europe and Turkey during which Obama sought to place his stamp on U.S. foreign policy after eight years of the Bush administration.
He and other world leaders pledged cooperation to combat a global recession, and he appealed with limited success for additional assistance in Afghanistan, a war he has vowed to intensify. The new president drew large crowds as he offered repeated assurances that the United States would not seek to dictate to other countries.
"I am personally committed to a new chapter of American engagement. We can't afford to talk past one another, to focus only on our differences, or to let the walls of mistrust go up around us," Obama said before leaving Turkey. The visit to a nation that straddles Europe and Asia was designed to signal a new era. He had pledged as a candidate to visit a majority-Muslim nation in his first 100 days in office.
While U.S. casualties are down sharply from the Iraq war's height, there were constant reminders of violence. A half-dozen bombs rocked Shiite neighborhoods on Monday, killing 37 people. There was no immediate death toll available from the car bomb incident that occurred a few hours before the president arrived on Tuesday.
The military is in the process of thinning out its presence ahead of a June 30 deadline, under a U.S.-Iraq agreement negotiated last year that requires all American combat troops to leave Iraq's cities. As that process moves forward, the increase in bombings and other incidents is creating concern that extremists may be regrouping.
Little more than a week ago, the president announced a revamped Afghanistan strategy that calls for adding 21,000 troops, narrowing the focus from nation-building to stamping out the Taliban and al-Qaida and broadening the mission to include pressure on Pakistan to root out terrorist camps in its lawless regions.
Afghanistan was a big topic of conversation with fellow world leaders on the earlier portion of Obama's trip, particularly the part that took him to a NATO summit in Strasbourg, France.
Obama's opposition to the Iraq war helped him in his campaign for the presidency. It helped him defeat former rival — now Secretary of State — Hillary Rodham Clinton in the Iowa caucuses that were the first test of the race, and aided his campaign against Republican Sen. John McCain last fall.
The end-the-war plan Obama announced in February was aimed at fulfilling his campaign promise to end combat in Iraq within 16 months of taking office. Contrary to hopes among some Democrats and grass-roots supporters, the plan calls for a 19-month timetable instead.
The Associated Press and NBC News contributed to this report.