A seven-alarm fire has been brought under control in Philadelphia after reducing a four-story warehouse to rubble and threatening neighboring homes.

Authorities report no injuries at the blaze in northeast Philadelphia. Flames and smoke had been visible for miles after the fire started before 3 a.m.

Several nearby homes were evacuated because flying embers had threatened to set roofs on fire, but firefighters say they were able to keep the flames from spreading to those structures.

Power is reported out to several hundred customers in the area as crews continue to pour water on remaining flames.