A California man who lost everything after a wildfire tore through his neighborhood was reunited with his cat Thursday thanks to social media and the work of sheriff’s deputies.

The sheriff’s department posted a video showing a deputy coaxing the cat from under a car to safety.

“Law enforcement proudly serving their community in times of crisis has been amazing,” the sheriff’s department wrote along with the video.

But some patience — and a treat — finally convinced him to come out.