On Feb. 27, 2009 -- one month after taking office as president -- Obama in a speech said, "Let me say this as plainly as I can. By August 31, 2010, our combat mission in Iraq will end."
On his campaign Web site, Organizing for America, however, it states that Obama would end the "war responsibly" within 16 months of assuming office, or by roughly May 20, 2010.
The Web site reads: "Barack Obama will work with military commanders on the ground in Iraq and in consultation with the Iraqi government to end the war safely and responsibly within 16 months."
A Dec. 2, 2008 article in the Christian Science Monitor reported that President-elect Obama told Iraqi officials he supported the SOFA.
"The security pact was the first such agreement since the invasion to outline specific terms for U.S. involvement in Iraq," the article stated. "It was also the first in the region to be publicly debated and approved. Iraqi leaders backed the agreement after reassurances from President-elect Obama that his administration would not try to change the accord negotiated by the Bush administration."
The "surge" by U.S. troops in Iraq was announced by President Bush in January 2007 and involved the deployment of more than 20,000 additional soldiers. By mid-June, the additional brigades were in place and the surge began, focusing on al-Qaeda, Sunni and Shia foes in Anbar, Baghdad, Babil and Diyala provinces.
By September, U.S. commander Gen. David Petraeus was able to report to Congress that "the military objectives of the surge are, in large measure, being met."
At the time Bush announced the surge in January 2007, then-Sen. Barack Obama (D-Ill.) said, "I personally indicated that an escalation of troop levels in Iraq was a mistake and that we need a political accommodation rather than a military approach to the sectarian violence there."
Then, in January 2008, after Bush's state of the Union Speech and when it was evident that the surge had been successful, Obama said, "Tonight we heard President Bush say that the surge in Iraq is working, when we know that's just not true."
House Speaker Nancy Pelosi (D-Calif.), who also opposed the surge, issued a statement on Monday this week giving Obama credit for ending the war in Iraq.
"America's brave men and women in uniform have done everything that has been asked of them in the war in Iraq; they have performed excellently," Pelosi said. "Soon, our nation will begin a new chapter in this effort, ending combat operations on the schedule President Obama promised."
But in February 2008, Pelosi said Bush's military strategy in Iraq had failed.
"The purpose of the surge was to create a secure time for the government of Iraq to make the political change to bring reconciliation to Iraq," Pelosi said on CNN's "Late Edition." "They have not done that."
In Atlanta on Monday, Obama praised the withdrawal of U.S. troops from Iraq, which will finally end, according to the SOFA agreement, on Dec. 31, 2011.
"Already, we have closed or turned over to Iraq hundreds of bases," Obama said. "We're moving out millions of pieces of equipment in one of the largest logistics operations that we've seen in decades.
"By the end of this month, we'll have brought more than 90,000 of our troops home from Iraq since I took office - more than 90,000 have come home," Obama said.