Shots were fired at Leavenworth and McAllister streets in San Francisco just before 8:30 p.m., according to Sgt. Dennis Toomer.
No one was injured, but responding officers spotted a silver-colored sedan seen driving away from the area with three males and a female inside.
Police attempted to stop the vehicle on the Bay Bridge but it evaded them, Toomer said.
A firearm was thrown from the car during the pursuit, which ended near Market and West Grand Street in Oakland, where the vehicle was last seen.
However, a short time later, the vehicle was involved in a collision near West Grand and West Street, Toomer said.
Officers arriving on the scene located two male suspect and a female suspect near the vehicle, and took them into custody. The third male was located near 22nd and Curtis streets and also taken into custody.
The shooting was the second in the Civic Center area this evening and the third in San Francisco today.
Multiple gun shots were fired in the area of Larkin and Grove streets around 6:35 p.m., just minutes after the official closing time of the SF Pride Celebration.
The victims, two male adults, were both shot in the leg and sustained non-life threatening injuries, Toomer said.
A suspect was seen running on Larkin Street after the shooting, but no arrest has been made. It is not clear if the victims were the intended target of the shooting.
Earlier in the day, around 3 p.m., a 30-year-old man was shot and killed on the 700 block of Kirkwood Avenue in the Bayview District.