MILL VALLEY (CBS SF) – Two people were arrested Wednesday after a pursuit stretching from Contra Costa County to Marin County ended in a crash in Mill Valley.

Around 4:10 p.m., officers were notified by the Contra Costa Sheriff’s Office that they were pursuing a silver BMW possibly linked to the assault of an officer. Police said the pursuit began in the East Bay and included marked police vehicles and a helicopter.

READ MORE: Body of Missing Stanford Nurse Found in Fremont

After the BMW entered Mill Valley on Highway 101, police said the driver exited the freeway at Blithedale Avenue and headed towards downtown. The suspect vehicle then crashed into a Tesla at the intersection of Blitedale and Locust avenues, before striking a fence.

Police said the suspects then fled on foot into the surrounding neighborhood, with the pair entering backyards. The suspects then attempted to enter a home on Elm Avenue before they were scared off by a resident.

READ MORE: UPDATE: 4 Minors Arrested In Connection with Shooting in Hillsdale Mall Parking Lot

Officers, along with sheriff’s deputies from Marin and Contra Costa counties soon apprehended the suspects.

Police said the suspects were then taken back to Contra Costa County for processing. Their identities were not immediately available.

MORE NEWS: UPDATE: Police Shoot, Kill Armed Suspect Outside International Terminal at SFO

A shelter in place for the neighborhood was lifted shortly before 5 p.m.