The incident occurred at the Petroleos Mexicano (Pemex) refinery; named after former Mexican president Lazaro Cardenas.
Black smoke, flames as well as repeated explosions can be seen; and also heard in videos that made rounds on social media on Wednesday.
Mexico’s safety, energy as well as environment regulator ASEA reported that the blaze started in a gasoline transfer pump.
The watchdog said that it would inspect the facility in wake of the fire to “verify security conditions.”
One photograph in particular is going viral; showing a Pemex worker scrambling to shut off a valve as a fireball explodes behind him.
Around 7:30pm local time, Pemex said the fire appeared to be under control, also adding; “Fortunately, it is confirmed that there are no fatalities or serious injuries.”
The refinery boasts a capacity of up to 285,000 barrels per day.
The mishap at the Mexican refinery comes after a spate of fires rocked a number of oil facilities around the world in recent weeks.
A major blaze at an oil refinery in Indonesia’s West Java province late last month sparked a mass evacuation; leaving several people injured.
An attack on a Saudi oil terminal north of the Saudi-Yemen border around the same time ravaged a fuel tank at the facility.