The Flatbush building in which one man was killed and 15 more were injured during a severe fire on Wednesday was found to have been illegally subdivided.

The deadly blaze was sparked by a faulty refrigerator wire around 12:35 a.m., and swiftly ravaged the building's second and third floors. Firefighters spent more than an hour battling the flames, which ultimately claimed one 24-year-old man and sent more than a dozen others to the hospital in a range of conditions.

The building's owner told the Post that a tenant on the second-floor had, unbeknownst to him, carved up the space into 11 illegal rooms replete with electrical hazards like exposed wires. The Department of Buildings has placed a vacate order on the remaining apartments.

Earlier this month, Bensonhurst landlord Vasilios Gerazounis was charged with criminally negligent homicide after six people were killed in an arson attack on his property, in which he had illicitly partitioned single-family apartments into six separate dwellings.