It happened near the 3000 block of Pennrose Avenue in South Philadelphia.
Firefighters were called there just after 7:30 p.m. for black smoke showing from the refinery.
Some residents across the city reported seeing the billowing smoke.
"At approximately 7:20 pm, a fire occurred at the Philadelphia Energy Solutions Refinery Complex, with visible black smoke. PES emergency responders and the Philadelphia Fire Department were immediately engaged and the fire was quickly contained and safely extinguished. There were no injuries or offsite impacts as a result of this incident," said Philadelphia Energy Solutions refinery in a statement.
No word on what caused the blaze and no injuries have been reported.
Officials tell Action News the fire was brought under control around 8:30 p.m.