Dramatic footage shows the moment Alaska authorities rescue a 30-year-old man who was stranded outside in the middle of the wilderness for at least 22 days in subzero temperatures after his cabin blew up because of an accidental fire.

Tyson Steele, a homesteader from Utah, wrote ‘SOS’ in large letters in the snow so that Alaska State Troopers flying overhead by helicopter spotted on Thursday.

The video showing the rescue shows Steele frantically waving his arms in the air as the chopper descends down on an area around 20 miles outside of Skwentna.

The state troopers could only see Steele by helicopter since he had been stranded in an area that was not accessible by roadway.

He has told how he ate peanut butter and pineapple and built a makeshift cabin to survive.

Taylor Steele, 30, a homesteader from Utah, was rescued on Thursday by Alaska State Troopers

Steele spent 22 days in the Alaskan wilderness where he braved subzero temperatures

He wrote 'SOS' in large letters in the snow after his cabin burned down

Steele was stranded in the wilderness in Susitna Valley, where the nearest neighbor lived in Skwentna, about 20 miles away

Steele had not been heard from in weeks, and family and friends asked authorities to perform a welfare check.

He told state troopers that he doesn’t remember if his cabin caught fire on December 17 or 18 - meaning he was stranded for either 22 or 23 days.

‘It started with a pretty hasty mistake,’ Steele said.

‘My woodstove is very, very old. The mistake I made, I got hasty and I put a big piece of cardboard in the stove to start the fire.

‘Which I knew was a problem, I’ve had woodstoves all my life. I knew that you don’t do that.

‘So, it sent a spark out through the chimney which landed on the roof.’

The spark eventually made the roof catch fire.

‘There’s fiery drips of plastic coming through the roof above me,’ Steele recalls.

‘So, I go outside to pick up some snow and I just see that the whole roof’s on fire.’

Steele quickly threw on a pair of boots while wearing no socks, pulled up his long johns, and put on a heavy wool sweater.

He then sees the cabin go up in flames. Steele then remembered that his dog, a six-year-old chocolate lab, was inside.

Tragically, Steele (seen in the above file photo) wasn't able to save his dog from the cabin fire

Steele's family and friends grew worried when they didn't hear from him in weeks, so they asked Alaska State Troopers to do a welfare check

He told state troopers that he doesn’t remember if his cabin caught fire on December 17 or 18

‘His name was Phil. Best dog in the world,’ Steele said, getting choked up.

‘He was so scared of the fire and in my thinking I’ve gotta grab Phil and I’ve gotta grab some stuff to sleep in so I basically … I grabbed everything that was on my bed.

‘You know, blankets on my bed.

‘I just grabbed some coats, some sleeping bags – whatever – just a bag of something and whatever and wrapped it up in the blanket and I rush outside, and I tell Phil, “Get out of here! Get out of here!”

‘And he jumps off the bed, and I think it’s good, right? I think he’s left.’

In the confusion, Phil was still inside.

‘I go grab my rifle around the other side of the cabin – .338.

‘And my dog starts howling, right? Inside. And I thought he was not inside.’

Eventually, the fire spreads and causes the ammunition stored inside to explode.

He realized there was no hope of saving Phil.

‘I have no words for what sorrow; it was just, just a scream,’ he said.

Phil, Steele's six-year-old chocolate lab, was unable to escape the cabin went it was engulfed by flames

Steele cried as he recounted the death of his good friend. The two are seen above in this undated file photo

‘Just a visceral – not angry, not sad, just, like, that’s all I could express – just scream.

‘Felt like I tore my lung out.’

He described the explosions he saw which engulfed the cabin.

‘All my bullets, I had 500 rounds, probably, and shotgun shells, .338 shells, 9 mm, .44 – a whole bunch of different shells,’ Steele said.

‘The one I recovered was out of bullets and the bullets were in an ammo box exploding.

‘Pow, pow, pow, pow, pow! It was like a war zone.

‘It was just 500 rounds going off all at once.

‘I don’t know if I can even approach the cabin to put it out. There’s 500 rounds of ammunition going off!’

Steele was able to salvage canned food and jars of peanut butter from a pantry that was not destroyed by the fire.

‘The thing was, maybe half of those cans, they’ve heated up and popped open and the smoke’s circulating inside,’ he said.

‘So, it tastes like my home, just burning.’

He also told a local news station that he ate pineapple, despite being allergic to the fruit.

Steele said he built a snow cave, where he slept the first two nights after the cabin burned down.

‘Snow caves are pretty nice for survival,’ he said. ‘There’s a lot of insulation.

‘It can be negative 40 outside and if you have a candle – which I didn’t – but if you do, it can be above 30 degrees.

Steele was able to salvage canned food and jars of peanut butter from a pantry that was not destroyed by the fire

‘But I just huddled into that dark cave and I slept. I slept for a really long time.

‘And it was, it was warm. Warmer than outside.’

Steele said that the heavy snowfall combined with the fact that his snowboats were left inside the charred cabin meant that he needed to make do with boots and ‘crappy socks that were full of holes.’

‘It took me days just to go a quarter mile,’ he said.

Steele said he was looking for a frozen lake where a rescue plane could land and extricate him.

He then paved a trail toward a lake, thinking it would make it easier for rescue services to find him.

Steele then drew a big SOS into the snow.

He says he then built another shelter using scrap lumber and scavenged tarps. He put the tent-like domed structure around the woodstove that he used to heat his cabin.

‘It’s by no means a cozy cabin that I was able to put together,’ he said.

‘It just took the edge off. I could still see my breath, but at least I wasn’t suffering.

‘And I spent a lot of my days, a lot of my time – say this is the woodstove and this is my cot, and I would be like this,’ he said before showing how he almost hugged the stove.