Before he was even a senator he said this about the Iraq war:
"I am not opposed to all wars. I'm opposed to dumb wars. What I am opposed to is the cynical attempt by Richard Perle and Paul Wolfowitz and other arm-chair, weekend warriors in this Administration to shove their own ideological agendas down our throats, irrespective of the costs in lives lost and in hardships borne."
"He's a bad guy," Obama said, referring to Iraqi dictator Saddam Hussein. "The world, and the Iraqi people, would be better off without him. But I also know that Saddam poses no imminent and direct threat to the United States, or to his neighbors, that the Iraqi economy is in shambles, that the Iraqi military a fraction of its former strength, and that in concert with the international community he can be contained until, in the way of all petty dictators, he falls away into the dustbin of history."
"I know that even a successful war against Iraq will require a U. S. occupation of undetermined length, at undetermined cost, with undetermined consequences," Obama continued. "I know that an invasion of Iraq without a clear rationale and without strong international support will only fan the flames of the Middle East, and encourage the worst, rather than best, impulses of the Arab world, and strengthen the recruitment arm of al-Qaeda."