Firefighters worked around the clock at a South Yorkshire factory when molten glass began leaking from a furnace.
At the height of the incident at Ardagh Glass in Monk Bretton, Barnsley, there were 50 firefighters inolved.
Crews were faced with molten glass leaking from a furnace, some of which had spilled out and reached an electrical switch room, which caught fire.
Up to 280 tons of molten glass was at risk of escaping, firefighters said.
The crews used 12 water jets to stop the leak and to solidify the liquid glass.
Incident commander Steve Green, of South Yorkshire Fire & Rescue, said: “It was like lava from a volcano.
“The temperature in the furnace was 1,300C.”
An Ardagh Glass spokeswoman said: “We would like to thank South Yorkshire Fire & Rescue for their support in bringing this incident quickly and safely under control.”
Crews were first called to the incident on Sunday, at about 10.30pm.
Yesterday, firefighters were called to a garage on fire.
The blaze, at a property on Oakroyd Crescent, Grimethorpe, Barnsley, is believed to have been caused by a tumble drier.
And firefighters were called to deal with a spate of blazes over the weekend.
They responded to a 999 call about a house on fire on Ash Street, Upperthorpe, Sheffield, at 7.45pm on Sunday. The blaze, which was on the first floor of a terraced house under renovation, is being treated as arson.
In the early hours of Saturday crews were called to a bungalow on fire on Forrester Close, Flanderwell, Rotherham.
A couple in their 50s managed to escape the property before crews arrived.
An investigation is under way into the cause of the fire, but it is believed to have been due to an electrical fault in the loft.
Firefighters were also called out to Manor Park Centre, Manor, in the early hours of Saturday after arsonists set a bin store alight.
Later in the day firefighters were called out to a chip pan fire on Lowedges Drive, Lowedges, Sheffield. A man was taken to hospital suffering from smoke inhalation.
At about 10.55am on Saturday, fire crews were called to a property on Callow Mount, Gleadless Valley, to deal with a kitchen fire.
Later that day a fridge freezer caught fire in a garage on Lundhill Road, Wombwell, Barnsley and a chimney caught fire on Greenhead Lane, Chapeltown.
Other incidents dealt with by firefighters over the weekend included an arson attack on an outhouse connected to St Hilda’s Church, Windmill Lane, Firth Park, Sheffield, and a blaze in the smoking shelter outside the Traveller’s Inn, Ecclesfield, Sheffield.
n Anyone with information about the arson attacks is asked to call police on 101.