In a 2004 Senate debate with Alan Keyes, Obama said that he would prefer airstrikes rather than allow Iran to have nuclear weapons.