A heartbreaking video has captured the moment a dog, who was days away from death after maggots ravaged his ear, realised he was being rescued.

Street dog Dylan was saved by Indian charity Animal Aid Unlimited after a family in Rajasthan found him curled up in their bathroom waiting to die as the flesh eating parasites started to make their way towards his brain.

Despite the agony caused by the flystrike on his right ear, the video shows how the helpless hound still found the strength to wag his tail as his rescuers arrived.

Scroll down for video

The helpless dog is found curled up in a bathroom in Rajasthan as he prepares to die, but still manages to wag his tail when help arrives

After being led out of the dingy toilet, he is then fed biscuits as he continues to wag his tail

The tan-coloured dog even sat up as his saviours entered the dingy bathroom where he had hidden, preparing to succumb to his appalling injuries.

Once he has been led out of the toilet, he continues to wag his tail and licks his lips as he's stroked and fed biscuits, before being wrapped up in a blanket and carried to the animal ambulance waiting outside.

The dog is then seen standing on the veterinary table back at Animal Aid Unlimited's treatment centre as the team assess his injuries, before trustingly letting them roll him onto his side to treat him.

Seemingly aware he is being rescued, the dog even allows the Animal Aid Unlimited workers to stroke him - despite being in obvious agony

He is then wrapped up in a blanket and scooped up into the arms of one of his saviours, before being put into the animal ambulance waiting outside

Once at Animal Aid Unlimited's treatment centre, he's placed on a veterinary table and willingly rolled over on his side as they prepare to operate on him

After sedating Dylan, an Animal Aid Unlimited worker is seen cleaning up his bloodied wound, shaving the fur around it and then cutting away what remained of his necrotic ear.

His rescuers then drain his ear canal with a syringe before bandaging him up.

The next clip then shows a far happier Dylan recovering from his terrible ordeal, wagging his tail frantically and affectionately licking Animal Aid Unlimited workers at the charity's sanctuary in Udaipur.

First they clean his wound and then shave away the fur around his necrotic ear

They then give him a thorough wash to rid Dylan of any remains of the maggots which nearly killed him

What remains of his mangled ear is then cut away and the helpless hound is bandaged up

A spokesperson for Animal Aid Unlimited said: "We cannot imagine the excruciating agony this gracious old street dog was in when his ear was shredded and devoured by maggots.

"When we arrived at the house where he had taken shelter in a bathroom, we found a dog hiding as they will often do when they think they’re going to die.

"His reaction to seeing his rescuers was amazing."

Things couldn't look more different for Dylan in the next clip, when he is seen enjoying plenty of TLC from Animal Aid workers

The affectionate hound shows his appreciation by giving one of his rescuers a lick on the face

And, as ever, his tail doesn't stop wagging as he enjoys life at Animal Aid's Udaipur sanctuary

"Dylan wouldn’t have had a chance without the help of so many kind souls who support our rescues."

Animal Aid Unlimited - set up by Erika, Jim and Claire Abrams-Myers 15 years ago after the family relocated to India from Seattle - rescues thousands of animals from India's streets every year.