The duck, a mallard, was spotted by a member of the public stuck in an overflow drain in the River Aire on Wednesday, December 29.
RSPCA animal rescuer Inspector Joanne Taylor was called to in High Court Lane, near The Calls.
She could see the frightened mallard behind the drain in the water about 10 feet below a bridge near The Stew and Oyster pub.
She decided to call the fire service for help.
A firefighter was able to use a ladder to climb down to the drain and, with a rope attached to it, he was able to lift up the heavy metal grate.
Joanne said: “The firefighter was wearing breathing apparatus and protective clothing - he also had a mask on due to risks associated with bird flu.
“Once he had opened the drain cover, he tried using a swan hook to try and catch the bird but it was in such a flap she was struggling.
"In the end, he had to go inside the grate to get the mallard out ands he was in good health so was able to freely fly off.
“It was great to see the bird fly off happily and I caught the moment in a photograph.
"I then watched as the bird went to preen in the water.
“We often call the fire service for help in some of our rescues and we are always grateful for their assistance. I would also like to thank the keen-eyed member of the public who spotted the bird’s predicament.
She added: "It was very difficult to see the trapped bird and she would have starved to death if the incident had not been reported to us.
“The RSPCA is the only charity with teams out rescuing animals across England and Wales this winter. We have to be there for all kinds of animals who need help, including wildlife.
"We rely entirely on donations so we’re calling on animal lovers to Join the Rescue to help keep our teams doing whatever it takes to rescue, rehabilitate and release wildlife.”
In line with Government guidance, the RSPCA is advising the public not to touch, move or transport sick or dead birds amid a growing number of incidents of the highly infectious avian influenza virus.