Billy the fox terrier, whose owner is British, first became stuck on April 3, after running through artificial tunnels next to the Bourgogne canal.

It is thought that the tunnels had become partially collapsed, trapping the 13-year-old pet.

Urgence ! Le loulou Billy s'est engouffré dans un aqueduc (tunnel artificiel) en dessous du canal de bourgogne et s'est mis en mauvaise posture, il n'arrive pas à sortir (certainement piégé dans une galerie de ragondins, annexe au tunnel pas entretenu). pic.twitter.com/T91raUY1Ko — VB (@20320Vero) April 7, 2019

Firefighters were called to help with the rescue, with crews attempting to pump water out through the tunnels to help free the dog, while the animal himself sheltered in another tunnel.

Departmental potholers and divers were also called.

Jean-Marc Chaput, technical consultant for the department, said: “We asked for pumps to help clear the water, and we found a network of tunnels that we couldn’t get through. But we were sure that the dog was there.”

Similarly, canal management company VNF (Voies Navigables de France) also became involved, attempting to lower the level of the canal waters to allow the searchers to access the tunnel.

During the rescue, firefighter Hervé Gauthier said: “We can hear [Billy] but we can’t see him. We are putting everything we can in place to reach him. Access is difficult and the ground is unstable.”

After several failed attempts at rescue - and some firefighters becoming stuck and requiring saving themselves - Bernard Schmeltz, commissioner for Bourgogne-Franche-Comté, called off the operation.

He said: “[We] cannot continue to risk the lives of the would-be rescuers by pursuing this.”

A department press release said it “did not forbid” any rescue operation by volunteers, but strongly recommended against it due to the instability of the area and the presence of water.

But comedian Rémi Gaillard - advocate for animal causes and head of animal welfare group Anymal - then took up the cause, saying that “[we] cannot just let the animal die”.

He said: “The more I hear from these people [authorities], the more I admire dogs.”

Bonjour Bernard Schmeltz, @Prefet21_BFC,

Billy, piégé dans un trou depuis 5 jours, n'arrête pas d'aboyer.

Spéléologues OK pour agir, mais vous préférez ne "pas poursuivre l'intervention" et le laisser crever.

Plus je vois des types comme vous, plus j'admire les chiens. pic.twitter.com/hgp3HRaNLy — Rémi Gaillard (@nqtv) April 8, 2019

Mr Gaillard wrote a Facebook post calling for support for the rescue, and saying that Billy was “still alive, and had not stopped barking” since he became trapped.

As a result, volunteer teams showed up to help, with some helping to provide an extra water pump, and a group of volunteer potholers also coming to the dog’s aid.

Bonjour Bernard Schmeltz, @Prefet21_BFC,

Je tiens à vous remercier de ne pas avoir poursuivi les interventions #Tartuffe

De vrais hommes ont pris le relais pour sauver Billy ❤️ pic.twitter.com/isFFCXqCMi — Rémi Gaillard (@nqtv) April 9, 2019

Billy was finally freed on Tuesday April 9.

The owner told a reporter from NGO foundation 30 Millions d’Amis: “I am so happy. It’s unbelievable…[Billy] is OK, he just has a little cut.”

Billy was later taken to a vet, who diagnosed him with slight dehydration but otherwise gave him a clean bill of health and let him go home.