The Vermont senator was addressing an audience at the National Association of Black Journalists Convention in Miami, Florida.
He promised his campaign would work to unify the country that's reeling after back-to-back mass shootings.
"Not only are we going to take on Trump's lies and his hatred and his racism and his sexism and his homophobia and his xenophobia and his religious bigotry -- other than that I think he's doing a pretty good job -- but the way we take him on is by doing exactly the opposite of what he is trying to do," he said.
"He is trying to divide us up by the color of our skin and where we were born.
And our campaign is bringing people together." On Saturday (August 3), a gunman killed 22 people in El Paso, a Texas city on the border with Mexico.
Law enforcement agencies say the suspected gunman was driven by hatred for Hispanics, citing an online manifesto apparently written by the shooter that was rife with anti-immigrant hatred.
In the second mass shooting 13 hours later, a gunman in Dayton, Ohio, fatally shot nine people, including his sister, before he was killed by police.
The shootings intensified criticism of what many say is incendiary rhetoric by Trump.
The president, who has insisted he is not a racist, said Americans must "condemn racism, bigotry and white supremacy."