Bay Area residents came out by the hundreds in San Jose, San Francisco and the East Bay to protest federal immigration actions under the Trump administration.

On Tuesday, some 100 protesters confronted federal agents who were taking a few people into custody inside an immigration courthouse building in Concord, according to building workers and eyewitnesses.

Agents representing the FBI’s San Francisco office were present at the Concord Immigration Court on Gateway Boulevard before and after noon on Tuesday, witnesses said. Those same witnesses said the FBI agents identified themselves but did not give out their badge numbers and scattered when protesters approached them.

Reached Tuesday afternoon, an FBI spokesperson declined to immediately comment.

Agents who appeared to be masked but without full body armor took two people out of court about 12:15 p.m., put them in a van and drove away amid about 100 protesters shouting at them. Earlier, witnesses said, other agents who appeared to be from Immigration and Customs Enforcement took two others out of court and drove off.

It was not clear immediately where those four people were headed or why they were wanted. ICE officials could not immediately be reached for comment Tuesday afternoon.

The Concord enforcement came in the weeks after several reported immigration arrests in San Jose prompted protest marches last week and this week.

San Jose City Councilmember Pamela Campos was one of several speakers who addressed the crowd at a Monday afternoon rally in San Jose.

“We are experiencing an attack on our community,” Campos said in a speech. “We will counter Trump’s lies with the truth about our immigrant communities. And the fact is, immigrant families are the hardest working taxpayers in our country.”

Campos implored the crowd to “lead with compassion.”

“We know that those in power will use any pretext for a violent escalation,” she said.

About two dozen people gathered at an East Oakland intersection where neighbors have held a weekly protest against the Trump administration.

Across the bay in San Francisco, hundreds of people gathered for a second day in a row to rally against the Trump administration’s immigration crackdown. The demonstration started near 24th Street and moved down Mission Street to the sound of chants and drumbeats.

Police said in a statement late Monday that “thousands of people participated in (Monday’s) demonstrations, which were overwhelmingly peaceful. At the very end of the night, two small groups broke off and committed vandalism and other criminal acts.”

San Francisco Mayor Daniel Lurie said in a statement: “I understand why people are out on the streets. The tactics being used across the country to target immigrant communities are meant to instill fear. Those tactics make members of our community less likely to work with law enforcement to report crimes and criminals. They make people afraid to go to work or send their kids to school. That all makes our city less safe.”

Back in San Jose, speaker after speaker urged attendees to do more than just protest.

“We have to make sure that we change the rules to the game,” said Santa Clara County Supervisor Sylvia Arenas, recalling her history as a daughter of immigrants and a resident of East San Jose.

“You have to go into City Hall,” she said, “you have to go in: when you go in as a group you have so much power.”

In between speeches, the crowd broke into chants, including “No justice! No peace! No ICE! No police!”

Speakers also called out the city’s policies on homelessness, arguing that there was inadequate housing for individuals faced with the choice of getting caught in an encampment sweep or accepting shelter. A skit lampooning the issue ended with a man in a Batman costume demanding that the city instead build additional housing.

“So many of us have so many closed doors,” protest participant Misrayn Mendoza said in Spanish. “How are you going to criminalize people when there’s no access?”

Others pointed to a lack of housing and shelter options for people with disabilities.

San Jose Mayor Matt Mahan pushed back against the criticism in a statement Monday night.

“On the issue of accountability on homelessness and immigration, I want to be very clear: those attempting to conflate the issue are doing so for their own purposes — not for the good of anyone in this community,” he said. “Let’s listen to each other, work to understand the issues and avoid fear-mongering as we work to pass a budget that builds out the shelter system we need and provides legal support to our immigrant communities.”

Mahan also urged protest participants to remain peaceful.

“San Jose is — and always will be — a welcoming city,” he said. “We here at City Hall support the right to protest peacefully. While our residents do so, I want to remind everyone that we must stay peaceful because violence undermines our ability to keep everyone safe — documented and undocumented. And it will invite an outsized response from those who want to make an example out of Californians and our values.”

Edgar Quiroz Medrano, 36, of San Jose, said that he came to the protest to stand in solidarity with all immigrant communities.

“We’re here to show that we are united,” he said, “that we are cohesive, that we are going to fight for our rights, that we’re going to fight for each other, that we’re going to back each other up.”

Bay City News contributed to this report.