A stranded dog has been saved from a dangerous coastal wetland in the UK after a volunteer group came up with an unusual measure to lure the canine—dangling a sausage from a drone.

Millie, a three-year-old Jack Russell Terrier, went missing in Hammersmith, UK on Jan. 13 after slipping out of her leash. The owners appealed to the public to help them find their beloved pet. Eventually, Millie was spotted in the dangerous area of coastal wetlands, or mudflats.

Volunteer rescue group Denmead Drone Search and Rescue team attempted to rescue the dog for two days and failed each time. Cops, firefighters and coast guards, too, failed to rescue the pet.

Millie, who was under the risk of being engulfed by approaching tide, resisted all efforts of rescue. That was until the drone pilot with the volunteering rescue group had the idea of dangling a sausage to lure the pooch out.

"The marshland was due to flood within hours so we had to quickly initiate a plan. Our drone pilot thought of tying food to lure her away - so after a risk assessment we decided to give it a try," Taylor told BBC.

"It was a crazy idea," the head of the rescue team, Chris Taylor told The Guardian. But, one that worked.

"One of the local residents on the beach where we were flying from supplied us with the sausages... The woman cooked them up for us and we attached them with string," Taylor added.

Millie had been hungry after being stranded in the mudflats and took the bait, quite literally.

"She was lured about 300m over to the edge of the mudflats on to higher ground, where we knew she was safe," Taylor said, BBC reported.

Millie initially ran off after the rescue. After two days of further search, she was finally reunited with her owner Emma Oakes. "Relief just poured over me. It was just absolutely fantastic to have her home," Oakes said to the Guardian.

The Denmead Drone Search and Rescue Group was formed three years ago to help people find missing people and pets using drone technology. The group said most animal rescue cases are not as complicated as Millie’s. They plan to use the unusual method in future animal rescue operations.

Cavalier King Charles Spaniel/Dog Breed Representative image. Photo: Pixabay