Some of them drew hundreds of people as cars took over numerous intersections.
RELATED: Fourth of July: Illegal fireworks light up Bay Area skies, spark fires across region
As officers moved in on one of them, they say spectators threw firecrackers and at least one person was arrested for blocking first responders.
Gunshots were also heard as officers had some of the vehicles towed.
You can see video of the incident in the media player posted above.
VIDEO: 7 shootings, sideshows, illegal fireworks: 'Nonstop chaos' in Oakland for July 4th, chief says