A group of firefighters dramatically rescued a 2,000 pound horse trapped up to its neck in an old cistern in a Maryland suburb on Sunday.

The nearly three-hour long rescue – portions of which were captured on videos and shared on social media – involved using earthmoving equipment to dig a trench large enough to get the animal to safety.

A veterinarian deemed the horse to be in good health.