The New York City Fire Department has determined the cause of a two-alarm fire that broke out at the Appellate Division, First Department, courthouse at 27 Madison Ave. on June 30.

The roof fire was caused by an open flame of a torch being used by construction workers renovating the building, according to the FDNY. The flame came in contact with combustibles.

The fire was deemed accidental, the department said. There were no injuries. The second alarm was called in mainly due to the impact of heat and humidity on the firefighters.