Officials say CHP officers tried to pull over the driver for speeding on interstate 580 near Park Boulevard, just before midnight.
Investigators say the driver didn't stop, and a chase followed for more than a mile. The suspects crashed their vehicle at 13th Avenue and East 18th and they tried to run away.
Police took the driver in custody at the scene for carrying a loaded gun. The second suspect ran into an apartment complex. Oakland's SWAT team and a K9 unit were called in, they him found in a garbage can.