Speaking to a town hall in Iowa, Obama brought up the Arizona law when asked about immigration reform.
"You know, you can try to make it really tough on people who look like they, quote, might be illegal immigrants," Obama said, suggesting that approach wouldn't work.
"You can imagine if you are a Hispanic American in Arizona, your great grandparents may have been there before Arizona was even a state," he said. "Now suddenly if you don't have your papers and you take your kid out for ice cream and you're going to be harrassed, that's not the right way to go."
Obama has previously called the law "misguided."