SAN FRANCISCO (AP)  Police arrested 45 people Saturday in the hours after thousands of protesters took to the streets of San Francisco and Oakland in largely peaceful protests, joining in a national demonstration against police killings.

Protesters earlier in the day marched up San Francisco’s Market Street from the waterfront to City Hall. The demonstrators briefly lay down on the street in the middle of the city’s shopping district for a so-called die-in.

Police cordoned off nearby Union Square, barring entry out of concern that a plan was underfoot to topple the city’s giant Christmas tree. No attempt was made on the tree or any violence reported.

Oakland police said 2,500 to 3,000 people held a largely peaceful march in the downtown area there to protest police killings of unarmed black men.

Police spokeswoman Johnna Watson said that hours later a crowd of about 500 remained and officers began making arrests.

She said at least 45 people were arrested for crimes such as vandalism, failure to disperse and resisting arrest.

By midnight Saturday there were no reports of any protest activity in Oakland.

At a smaller protest earlier Saturday in Hollywood, four people who blocked an intersection were arrested for failure to disperse.

Protesters on both sides of the San Francisco Bay carried signs that read “black lives matter” and chanted slogans and songs about opposing police brutality.

Several other cities across the United States experienced demonstrations Saturday.

Earlier in the day, police took down effigies of three black victims of lynching that were hung on the campus of the University of California, Berkeley Saturday morning.

Investigators believe the cardboard cutouts of life-sized photographs of lynching victims were connected to a smaller protest in Berkeley at noon. Police don’t know the motive or who hanged the effigies and are investigating.

“These images are very upsetting,” said campus spokeswoman Claire Holmes.

Organizers of the Berkeley protest said they were unaware of who hanged the effigies too.

“We hope that it’s someone who wanted to bring attention to the issue,” said Spencer Pritchard, 21, a UC Berkeley student and an organizer of the Berkeley protest, which was peaceful and attended by about 200 people. Many of the Berkeley protesters joined the Oakland demonstration.