That pursuit ended when the suspects crashed a stolen car, at Montana Street and Laguna Avenue in Oakland.
Oakland police first tried to stop the car, before the driver went the wrong way on I-580.
A police helicopter spotted the car in San Leandro and sheriff's deputies chased it back into Oakland.
Deputies say they found a semi-automatic TEC-9 handgun inside the car. Three people were arrested.