A man was rushed to hospital after he was rescued from the roof of a burning building in the Scottish borders.
Emergency services raced to Ettrick Road in Selkirk after reports of a blaze was tearing through a three-storey building.
By the time firefighters arrived on the scene, the second floor was engulfed by flames.
Firefighters rescued the trapped man using a ladder.
He was suffering from smoke inhalation.
A video posted online show flames ripping through the top floor of the building as firefighters battled the blaze.
Seven engines were called out at 3.39am, with crews still at the property almost 12 hours later.
A spokesman from the Scottish Fire and Rescue Service said: "We mobilised seven fire appliances and one height appliance to the scene.
"We were met with a well developed fire on the second floor of a three-storey property.
"We carried out a rescue of one male casualty from the roof of the property using a nine-metre ladder.
"The casualty was suffering smoke inhalation and transported to hospital by the ambulance service."
Don't miss the latest news from around Scotland and beyond - Sign up to our daily newsletter here .