The FDNY says repair work with a torch caused the massive fire in Brooklyn that left several families homeless.

Flames broke out around 6:30 p.m. Sunday on Arlington Avenue near Linwood Street in Cypress Hills.

Fire officials say the fire started in a garage and quickly spread to six other homes and a church.

"It was the intensity of the fire and the spread and how close the buildings are, and also, with the construction, the construction of wood, and they have a lot of voids where fire can travel quickly. So it was a handful," said Deputy Chief Stephen Moro of the FDNY.

Firefighters got the flames under control around 2:30 a.m. Monday.

There was a partial collapse inside the building where the fire started.

Two people were hurt, one of them seriously.

Seven firefighters were treated for minor injuries.

The Red Cross is currently assisting displaced residents.