A dog has been filmed sitting protectively beside another canine after it was found lying injured on snow-laden train tracks in western Ukraine.

Video filmed by local man Denis Malafeev and posted to Facebook on December 25 shows the dog using its body to keep its wounded companion warm.

The video shows the pair bowing their heads as a train passes overhead, the second dog refusing to flee despite the clear danger to itself.

In the video’s caption, Mr Malafeev praises the dog’s unwavering loyalty, claiming the pair spent two days on the tracks before they were finally discovered.

“He kept her warm for two days under the constant threat of danger!” Mr Malafeev wrote.

"I don’t know what to call it: instinct, love, friendship, attachment. I only know this: not every human is capable of this. We should all learn from it!”

The dogs, christened “Panda” and “Lucy”, were subsequently taken to a local shelter, where they have since been adopted.

READ MORE: Loyal dog who waited outside hospital reunited with owner six days later