WEST NEW YORK, N.J. (PIX11) – Thirteen firefighters in New Jersey were injured battling a massive blaze that displaced dozens of families Thursday evening, officials said.

The four-alarm fire happened at an apartment building at 54th Street and Madison Street in West New York around 5 p.m., according to North Hudson Regional Fire and Rescue.

Investigators believe the fire started in the basement of the building. It was caused by gas, which made it difficult to extinguish, officials said.

The fire was so strong that smoke was seen and felt across the river in Manhattan. It took until Friday morning before the fire was finally under control.

Firefighters were able to prevent it from spreading to other buildings. The first floor of the apartment building collapsed in the blaze.

Eight of the 13 firefighters injured received treatment at a hospital. All have since been released.

Fortunately, no residents of the building were injured in the fire, officials said. North Hudson Regional Fire officials commended the bravery of the firefighters who helped evacuate everyone from the building.

However, more than 40 families were displaced from their homes after the fire, according to Red Cross New Jersey.

The Red Cross is providing emergency financial assistance to the families impacted by the fire. Families who are now homeless are being put up in a nearby hotel in Secaucus.

“What we’ve done is provided some emergency financial assistance they can use for things like clothing, food, things that they need immediately right now to keep them comfortable,” said Sheri Ferreira, a spokesperson for Red Cross New Jersey.