A fearless, goat-herding dog that refused to leave his livestock behind during the raging California wildfires miraculously survived the deadly blaze, according to his owner.

After evacuating last week, Roland Tembo Hendel and his daughter Ariel returned home, only to find their property destroyed — but discovered that their hero dog, Odin, had survived along with his sister, Tessa, and eight of their goats.

“Odin has lived up to his namesake,” Hendel wrote in a Facebook post detailing his experience. “He is our inspiration. If he can be so fearless in this maelstrom, surely so can we.”

In the post, Hendel recalled seeing the sky turned orange as the devastating Tubbs Fire approached Oct. 9.

“By 11:10 we could see the first of the flames across the valley. By 11:15 they were growing larger and the winds went mad,” he wrote. “We had loaded up the dogs and cats, but Odin, our stubborn and fearless Great Pyrenees would not leave the goats.”

“Even under the best of circumstances it is nearly impossible to separate Odin from the goat,” he continued. “I made a decision to leave him, and I doubt I could have made him come with us if I tried. We got out with our lives and what was in our pockets.”

After outrunning the flames, Hendel said he cried for what he believed was his lost dog.

When the family returned, trees in the forest surrounding their property were still burning but they were overjoyed to see their dogs and a handful of their goats alive.

On Saturday, Hendel wrote that Odin, Tessa and the goats were recovering in a spacious barn at a refugee shelter in the Sonoma County Fairgrounds.

“The wonderful volunteer vets gave Odin a check-up and said he is in remarkable health given what he’s been through,” he said.

The family set up a YouCaring fundraising page to help rebuild their barn. As of early Tuesday, it had raised almost $63,000.

“When you lose everything, it is easy to see what is important,” Hendel wrote. “I pray we can get our animal family what they need to win their heroic fight for survival, so Odin’s bravery and sacrifice are not in vain.”