The plant is owned by state-run energy giant Petroleos Mexicanos (Pemex), and is located in Tamaulipas state, Xinhua reported.
The fire, which broke out at 11 a.m., was doused about an hour later, Pemex said in a statement. Dozens of people were injured.
About 700 people were working at the facility when the fire broke out.
Residents living within a five-kilometer radius of the plant were evacuated.
'Look' how the Sheena Bora case has taken a toll on Indrani Mukerjea
Photos: Katrina Kaif, Parineeti Chopra, Shilpa Shetty's movie outing in Juhu
Birthday special: 14 Bollywood actors who made it big on TV
Photos: Vaani Kapoor, Poonam Pandey, Sana Khan at fashion event
Photos: Rishi Kapoor, wife Neetu, daughter Riddhima at book launch