The Placer County Sheriff's Office shared video on its Facebook page showing the bear trapped inside a car.
VIDEO: Mama bear and cub enjoy precious play time
It was decided the safest way to get the bear out of the car was to break the window, the sheriff's office said.
Deputy Lade was brave enough to break the window, allowing the bear to jump out and flee into the forest.
RELATED: Camera catches bear waking from hibernation in Glacier National Park
The bear somehow got inside a Subaru Outback in Carnelian Bay and destroyed the interior so badly that the doors couldn't be unlocked, said the sheriff's office on its Facebook post.