 Obama was in office for 3 years of the Iraq war.The U.S. gradually completed its withdrawal of military personnel in December 2011.In late February 2009, newly elected U.S. President Barack Obama announced an 18-month withdrawal window for combat forces, with approximately 50,000 soldiers remaining in the country.