Hector Meza, 40, is shown in a photo posted by the FDNY on social media.

STATEN ISLAND, N.Y. -- A homeless man is accused of starting a massive fire that ripped through several St. George businesses earlier this month, officials said.

Hector Meza, 40, was arrested by fire marshals and charged with fourth-degree arson, reckless endangerment and criminal trespass stemming from the June 6 incident, the FDNY said in post on social media.

Meza allegedly allowed a candle to burn carelessly, igniting combustibles in an alcove in the rear of one of the buildings on Stuyvesant Place, and leaving the scene without alerting anyone to the fire or calling 911, the FDNY post said.

Meza is homeless, according to an NYPD spokesman.

The three-alarm blaze engulfed three stores, including the Dunkin' Donuts and St. George Pharmacy.

The floors, ceiling, windows and roof of the coffee shop and the pharmacy were destroyed.

Al Gentile, owner of the St. George Pharmacy, previously told the Advance the fire started on the back porch. He and five customers were in the store at the time, and were able to get out unharmed.

"It filled up with smoke in a minute," he said.

Gentile says he's had issues with the homeless people who hang out on the porch behind his store, and the city has not helped with the situation.

"Their rights seem to be more important than tax-paying business owners," he said.

Meza was taken to an area hospital after his arrest. It was not immediately clear when he would be arraigned.