Emergency services in Northern Ireland were called out after three cows fell into a slurry pit on a farm in Co Tyrone.
A range of specialist crews from across Northern Ireland attended the incident at a farm outside Dromore on 28 December.
The fire and rescue service shared images from the incident on social media on New Year's Eve.
A spokeswoman for Northern Ireland Fire and Rescue Service (NIFRS) said: "Firefighters wore breathing apparatus and used rescue lines to pull the animals free from the slurry pit.
"Gas monitors were used throughout the incident to continually monitor gas levels from the slurry."
Rescuers needed to consider the risks from working amid toxic gasses from the slurry, hazards associated with "large animals in distress", dangers of contamination or infection and other problems in the "dirty and hazardous conditions".
Despite the operation taking several hours, NIFRS reported no injuries to staff and the three cows were successfully pulled from the pit.