FRESNO, Calif. – A black bear crawled inside a trash compactor and took the ride of its life on a garbage truck, traveling about 65 miles to a dump in central California where it briefly ran free.

Fresno officers went to a disposal site Tuesday after getting a report of a large bear running loose. The bear got into a trash compactor that was picked up by a disposal truck in the Hume Lake area earlier in the day.

The black bear crawled inside a trash compactor and took the ride of its life on a garbage truck, traveling about 65 miles to a dump in central California where it briefly ran free.

The black bear crawled inside a trash compactor and took the ride of its life on a garbage truck, traveling about 65 miles to a dump in central California where it briefly ran free. The Associated Press

The driver wasn’t aware that the bear was inside the compactor. Officials say it was either sleeping there or rifling through the trash.

Police and California Department of Fish and Wildlife employees eventually captured the animal after tranquilizing it. Neither the bear nor any people were injured.

The bear is being returned to Hume Lake.

California Dept. of Fish and Wildlife biologist Dan Fidler, center, loads a black bear onto a pickup truck after tranquilizing it at the Orange Avenue Disposal in Fresno, Calif. The Associated Press

California Dept. of Fish and Wildlife biologist Dan Fidler, center, loads a black bear onto a pickup truck after tranquilizing it at the Orange Avenue Disposal in Fresno, Calif. The Associated Press