AURORA, Colo. (CBS4)– Rescuers worked to free Cupcake, a 13-year-old horse from the muddy water at Cherry Creek State Park on Thursday afternoon. After hours of working to free the horse from the mud, the horse walked out at 5:45 p.m.

The rescue saga began hours earlier and became emotional at times.

Crews with South Metro Fire Rescue worked to free the horse after he sunk and fell in the muck near the state park.

Rescuers tweeted out an update on the situation where the horse appeared very tired, when the horse was erroneously called “Buttercup” instead of “Cupcake.”

Very emotional scene. Buttercup is exhausted. More SMFR Firefighters on the way to help. pic.twitter.com/Dd7EefbRsD — SouthMetroFireRescue (@SouthMetroPIO) July 28, 2016

It is unclear how the horse became stuck 400 yards from the pavement in knee-deep water and mud.

Copter4 flew over the rescue scene where several firefighters stood over the horse along with the animal’s owners and a veterinarian.

A later update on Twitter showed that the veterinarian would give Cupcake an injection to help her stand and walk, which could help rescuers get the horse out of the mud.

Buttercup's veterinarian is here! He will administer an injection to give her the energy she needs to stand and walk pic.twitter.com/VdsewGBVpX — SouthMetroFireRescue (@SouthMetroPIO) July 28, 2016

Rescuers helped the horse walk out on its own and then helped calm down the horse near emergency vehicles.

Rescuers said Cupcake appears to be fine with no apparent injuries.