The Placer County Sheriff's Office shared a video on its Facebook page showing the bear trapped inside a car.
Police decided that breaking the car's window was the safest way to free the bear.
Deputy Lade was brave enough to break the window, allowing the bear to jump out and flee into the forest.
The bear somehow got inside a Subaru Outback in Carnelian Bay and destroyed the interior so badly that the doors couldn't be unlocked, the sheriff's office wrote on its Facebook post.
* More local news
* Send us a news tip
* Download the abc7NY app for breaking news alerts