Fire crews say they expect to remain at the scene of a fire in Crofton throughout the weekend.
More than 50 firefighters from across West Yorkshire were called to a farm on Doncaster Road at around 12.45am this morning (Friday).
Two large hay barns at the farm are still on fire.
Crews from Wakefield, Ossett, Dewsbury and Hunslet were called to the incident and five appliances are still at the scene.
Watch commander Mike Ferries, of Wakefield Fire Station, said: “The barn was on fire and there was a danger of it spreading to further stacks and adjacent explosion risks.
“We managed to stop it spreading to three other hay stacks. The fire is now surrounded and contained and is being allowed to burn out.”
A fire service spokesman said: “Two very large stacks of hay remain alight and are burning out under controlled supervision from firefighters.
“One of the stacks was within the barn, which has collapsed due to the fire. “The other is in the open air.
“No people or animals have been hurt in this incident and no surrounding properties are at risk.
“This is likely to be a protracted incident which will require 24-hour attendance from firefighters over the weekend and possibly longer.”
An investigation into the cause of the fire is ongoing and motorists have been advised to find alternative routes as Doncaster Road is closed.