It happened around 1:15 a.m. at the 33rd Street Station on Market Street in University City.
Officials said an overhead wire fell onto the tracks and sparked a fire.
Passengers on the SEPTA trolley were evacuated.
Repair crews inspected the tracks and are repairing the overhead wire.
There were no injuries reported.
Trolleys are being diverted until repairs are complete.