STOCKTON (CBS SF) — Quick-thinking firefighters in Northern California rescued a dog locked in a backyard cage next to its flaming doghouse.

The fire happened Saturday afternoon at a two-story home in a residential neighborhood of Stockton. A two-alarm fire had engulfed the house when firefighters arrived.

READ MORE: Trio Of 55-Gallon Drums Found Leaking Motor Oil In Redlands Citrus Grove

Heavy plumes of smoke were blanketing the structure, and massive flames met firefighters inside.

Once they got a handle on the flames downstairs, some firefighters moved upstairs to search for potential victims bedroom by bedroom. Other firefighters continued working outside to stop flames from spreading to nearby buildings.

READ MORE: LA Facing $550M Revenue Shortfall On Sharp Declines In Transient, Parking Occupancy Taxes

Crews had to break through a fence in order to access a shed that had caught fire. That’s when one firefighter noticed something.

“Hey, we got a dog out here,” a firefighter is heard saying on the body cam video. The dog was in a cage right next to where threatening flames were beginning to spread.

The dog lay still as the firefighter doused it and the shed with water, likely saving the pet’s life.

MORE NEWS: Irv Cross, Former Rams Player And Broadcast Pioneer, Dies At 81

No injuries were reported, human or animal.