The FDNY says fireworks were the cause of a massive blaze in the Bronx Thursday.

Now three men are facing charges.

Fire marshals say the men seen here on the center and right admitted to having a fireworks fight and are being charged with arson and reckless endangerment.

The man on the left is charged only with illegal fireworks possession.

Investigators say he bought them from a store in Westchester County.

The 5-alarm fire erupted Thursday afternoon on Olmstead Avenue in Unionport.

It took three hours to bring under control and damaged six buildings in total — with two destroyed entirely.

Twenty-seven people were forced from their homes and eight firefighters were injured.