Vermont Sen. Bernie Sanders slammed Donald Trump during a campaign stop yesterday, calling the Republican front-runner’s comments on Mexicans and Muslims racist and xenophobic.

“Playing on people’s fears is counterproductive,” said Sanders. “We cannot continue to label entire people as terrorists or criminals or rapists.”

The Democratic candidate for president made the comments during a speech to students at Nashua Community College, one of four stops during a two-day swing through the Granite State. He tried to focus the conversation on his usual condemnation of income inequality, but fears of terrorism came up during the Q&A and in his speech.

Invoking the Sept. 11, 2001, and San Bernardino attacks, Sanders said, “I wish I could tell you otherwise, but there are people out there who want to do us harm.”

He laid out his plan to tackle ISIS, which called for the U.S. to lead a coalition of nations including Russia, Iran and Saudi Arabia against the radical jihadists.

“At the end of the day, the way ISIS will be defeated and destroyed is when that coalition works together and when we have ground troops from the Muslim nations,” Sanders said.

The latest New Hampshire polls show Sanders leading Hillary Clinton in the Democratic presidential primary race, but he recognized beating her nationally is an uphill battle.

“It’s especially difficult when you’re taking on one of the best-known people not only in America,” he added, “but in the world, somebody who has many years of strong achievements.”