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.