Rescuers had to be lowered down an abandoned mine shaft to save a dog that tumbled in while tracking a mountain lion.

The members of El Dorado County Professional Firefighters IAFF Local 3556 had to be lowered into what they first thought was a well, but turned out to be a mine shaft, to retrieve the dog on Tuesday, KOVR reported.

The dog had been hunting a mountain lion that had been killing goats in Camino, California, KOVR reported.

>> Read more trending news

The shaft was only about 6 feet wide, firefighters said in a Facebook post.

The dog was not hurt.