The White House has condemned the attacks in New York and New Jersey as an "act of terrorism".
As the charges against Ahmad Khan Rahami were made public the White House made its statement, previously it had withheld making an assessment on what had happened until a motive could be discerned.
Ahmad Khan Rahami bought bomb making equipment on eBay, made a video of himself testing out homemade explosives, and kept a journal expressing outrage at the US "slaughter" of mujahideen in Afghanistan, Iraq, Syria and Palestine, federal prosecutors allege.
The charging documents and accompanying sworn statements from the FBI were unsealed in a Manhattan federal court and shed new light on Rahami's motives.
His journal apparently expressed the wish to die a martyr, the criminal complaint revealed.
One passage of his journal is said to have read: "Inshallah (God willing), the sounds of bombs will be heard in the streets. Gun shots to your police. Death to your oppression."
Other parts of the 28-year-old's journal allegedly praise "Brother" Osama bin Laden; Anwar al-Awlaki, an American-born Muslim cleric and leading al Qaeda propagandist who was killed in a U.S. drone strike in Yemen in 2011; and Nidal Hasan, the U.S. Army psychiatrist who shot dead 13 people and wounded 32 at Fort Hood, Texas, in 2009.
An eBay account linked to Rahami bought chemicals, circuit boards and ball bearings that matched the explosives and remnants collected at the crime scenes, the documents said.
Video found on a family member's mobile phone dated two days before the bombings showed Rahami lighting a fuse and igniting incendiary material packed in a partially buried cylinder.
The number of people injured in the New York bombing has risen to at least 31 and includes one British national, the prosecutors office said in a statement.
An NYPD chief has defended officers who opened fire on a crowded Manhattan street after a man slashed an off-duty cop's face in a chase.Read the full story ›
Police in New York City are hunting for a man who set fire to a traditionally dressed Muslim woman as she shopped.Read the full story ›
A Muslim imam and another man have been shot dead in New York as they walked home from afternoon prayers.Read the full story ›
A 19-year-old man who was arrested after attempting to meet Donald Trump by climbing the glass facade of the Republican candidate's HQ using large suction cups has been identified.
The New York Police Department named the TrumpTower trespasser as Stephen Rogata from Virginia.
He has been charged with reckless endangerment and criminal trespass after being grabbed by police through a window on the 21st floor of Trump Tower.
The man had said he was seeking "a private audience" with Donald Trump, though it is not clear what he wanted to discuss.
A climber who scaled Donald Trump's 58-storey political headquarters in a bid to meet the billionaire has been arrested by police.Read the full story ›
The two-day solar phenomenon occurs only twice a year at opposite ends of the summer solstice.Read the full story ›
An explosion in New York's Central Park has left a teenager with a severe foot injury.Read the full story ›