ATASCOSA COUNTY, Texas — Atascosa County deputies rescued a horse from an oil vat on Friday night.

According to officials, the horse wandered onto the property, which had an active oil pump and storage tank on it.

Atascosa County Animal Control posted photos to its Facebook page showing the horse completely submersed.

According to a press release, the rescuers used a halter on the horse to prevent him from going in and used a wooden plank to help when the horse’s legs got stuck on the ledge.

The horse was pulled to safety and is doing fine.

And even though he was completely covered in oil, rescuers say he does not appear to have ingested any.

Officials say the oil overfill was actually a partially-buried oil storage tank that was more than six feet deep.