"To those who seek to undermine our spirit who wave the banners of racism and homophobia who think the First Amendment protects their violence you are not welcome in San Francisco," said San Francisco Supervisor London Breed.
FULL LIST: Counter demonstrations planned for San Francisco, Berkeley rallies
The rally was a gathering as a precursor to the Patriot Prayer rally at Crissy Field, whose organizer cancelled it late.
"You know as well as I do that they have a message we don't believe in a message of hate and we've seen across this country how that message can easily translate into violence," said Mayor Ed Lee.
MC Hammer singing "love is love" pic.twitter.com/nyiGc3rs3j— Melanie Woodrow (@MelanieWoodrow) August 25, 2017
The threat of violence had some saying they'd stay away.
"I don't think it's productive to have video footage of leftists clashing with people on the right," said Caitlin Lang.
FULL LIST: San Francisco road closures, transit impact during right-wing rallies and counter protests
While others planned to counter protest at Crissy Field or elsewhere.
"I do think it's right to tell people not bring weapons, that the security checks are fine but to stop people from coming is not the solution," said Michele Miola.
The crowd in front of city hall stretches across the street pic.twitter.com/6bF8dRi8HN— Melanie Woodrow (@MelanieWoodrow) August 25, 2017
"We are united against hate," said Rep Jackie Speier.
It was a message that artist MC Hammer sang as well. He also told the crowd he caught a red-eye flight from Texas just to be at the rally.
Click here for a look back at more stories and videos about recent protests.