Four men were arrested late on Wednesday over alleged plots to attack targets in and near New York.
The four planned to blow up synagogues and use Stinger missiles to bring down military planes, US prosecutors said.
The men were seized after allegedly planting what they thought were bombs near two synagogues in the Bronx area.
They earlier agreed to buy explosives from FBI agents posing as Islamic militants. New York has been on alert for a new terror attack since 9/11.
The four are charged with conspiracy to use weapons of mass destruction within the US and conspiracy to acquire and use anti-aircraft missiles, officials said.
The charges carry jail terms of between 25 years and life imprisonment.
FBI's allegations in full
(Source: New York Times)
Most computers will open this document automatically, but you may need Adobe Reader
Download the reader here
New York terror sting detailed
The four, all Muslims, are to appear in a federal court later.
They were named as James Cromitie (also known as Abdul Rahman), David Williams (aka Daoud and DL), Onta Williams (aka Hamza) and Laguerre Payen (aka Amin and Almondo).
A senior FBI official in New York said three were US citizens and one was from Haiti.
BBC defence and security correspondent Rob Watson says the case appears to be a classic sting operation against suspected home-grown militants rather than a plot with any links to known international terrorism.
New York Mayor Michael Bloomberg said the alleged plot showed "homeland security threats against New York City [were] sadly all too real".
The arrests were the result of a year-long investigation, officials said.
The Riverdale Temple was one of the targets, the authorities say
"The defendants wanted to engage in terrorist attacks," said Lev Dassin, acting US attorney for the Southern District of New York.
"They selected targets and sought the weapons necessary to carry out their plans."
According to prosecutors, the men planned to detonate cars packed with C-4 plastic explosives outside the Riverdale Temple and the Riverdale Jewish Center in the Bronx district of the city.
They also intended to target military planes at the New York Air National Guard base at Stewart Airport, 60 miles (85 km) north of New York City.
See a map of alleged targets
In their efforts to obtain weapons for the attack, the men dealt with an informant from the FBI, who provided the group "with an inactive missile and inert explosives."
"They had bags that were set up that they believed to be bombs, carrying about 30 pounds of explosives which they believed to be explosives," FBI official Joseph Demarest told reporters.
'Afghan war anger'
According to prosecutors, Mr Cromitie - whose parents are from Afghanistan - told an FBI informant in June 2008 that he was angry over the US-led war in Afghanistan.
The suspects allegedly wanted to attack National Guard planes
He "expressed an interest in 'doing something to America"'.
From October 2008, the informant began meeting him regularly along with the four others at a house in which the FBI had concealed video and audio equipment.
The group allegedly "expressed desire" to attack targets in New York and Mr Cromitie "asked the informant to supply surface-to-air guided missiles and explosives", prosecutors say.
In April 2009, the group agreed on the synagogues they intended to attack and proceeded to conduct surveillance, including taking photographs of the warplanes at the military base, prosecutors say.
Mr Cromitie allegedly pointed out Jews in the street, saying "if he had a gun, he would shoot each one in the head", according to the district attorney's statement.
According to the statement, he told the informant that attacking the Jewish community centre would be a "piece of cake".
He also said he would be interested in joining Jaish-e-Mohammed - a Pakistan-based group considered a terrorist organisation by Washington - "to do jihad".
New York, 21 mei. De Amerikaanse politie heeft vandaag vier mannen opgepakt, die worden verdacht van het voorbereiden van aanslagen in New York. De vier zouden het hebben gemunt op een synagoge en op vliegtuigen bij een militaire basis. Dat heeft de aanklager in New York laten weten.
De vier zouden een synagoge in de wijk Riverdale hebben willen opblazen door een auto te laten exploderen. Ook zouden ze militaire vliegtuigen van het vliegveld Stewart in de stad Newburgh hebben willen neerhalen met Stinger-raketten.
De recherchedienst FBI deed al een jaar onderzoek naar het viertal. Om wapens te verkrijgen, deden de verdachten zaken met een informant van de FBI. Die voorzag de mannen van een niet-functionerende raket en van explosieven die niet werkten.
De vier arrestanten zijn afkomstig uit Newburgh in de staat New York. Een van hen had in juni vorig jaar tegen de informant van de FBI gezegd dat zijn ouders in Afghanistan hadden gewoond. De terreurverdachte was geschokt door de vele moslims die in Afghanistan en Pakistan door Amerikaanse militairen zijn gedood.
Hij vertelde de informant dat hij zich bij een in Pakistan gevestigde militante groep wilde aansluiten. Ook repte hij van zijn plan actie tegen de Verenigde Staten te ondernemen. De man hoopte daardoor een martelaar te worden.