Prosecutors charged Ray Lazier Lengend with arson and bias charges, accusing him of throwing Molotov cocktails at four buildings, including an Islamic cultural center.
No one was injured in the attacks.
Lengend is at Bellevue Hospital Center for observation. The charges include one count of arson as a hate crime, three counts of arson and 10 counts of criminal possession of a weapon.
Police said Lengend had personal grievances with all of the targets. District Attorney Richard Brown says Lengend made broad anti-Muslim statements.
According to the criminal complaint, crude firebombs were tossed into a convenience store, two homes in Queens and the Islamic center.
Get Eyewitness News Delivered