Police rescued 60 cats and dogs Saturday from a California animal shelter threatened by wildfires in a daring mission captured by the officers’ body cameras.

The animals were housed in an SPCA building that looked as if it were in the path of the Nelson Fire. The fire burned through 2,162 acres in Solano County in the north of the state before being contained on Sunday.

Video from the rescue shows police, staff and volunteers hurrying to usher cats into cages and putting leashes around the necks of dogs, with smoke from the fire rising in the background.

Police said all the animals were saved and placed in foster homes overnight. On Sunday, the Solano SPCA requested animals be returned to the building, which avoided damage from the fire.

“All of the animals are out of the shelter for the night and the shelter wasn’t damaged,” the Solano SPCA wrote on Facebook. “We are smokey but we are OK.”

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Billy Perrigo at billy.perrigo@time.com.