Will Smith plays Deadshot in "Suicide Squad."
CNN  — 

Actor Will Smith used a recent press conference in Dubai to speak out against Donald Trump and Islamophobia.

Smith was there promoting his new film “Suicide Squad” when talk turned to American politics.

Read more: Will Smith looks to reclaim his throne as king of summer with ‘Suicide Squad’

The “Fresh Prince” had a few things to say about GOP nominee Donald Trump.

“As painful as it is to hear Donald Trump talk – and as embarrassing as it is as an American to hear him talk – I think it’s good,” Smith said. “We get to hear it. We get to know who people are and now we get to cleanse it out of our country.”

Smith said anti-Islamic sentiment is one of the reasons he wanted to travel to Dubai.

“In terms of Islamophobia in America, for me, that’s why it’s important to show up,” he said. “I’m in Dubai and I’m having fun and I’m tweeting and I’m showing pictures. Hey, doesn’t look like they hate me does it?”

“Suicide Squad” opened domestically on August 5 and has since been premiering abroad.