An Ohio man cried "Allah is in control, not this judge!" as he was sentenced to 30 years in prison for plotting to assassinate President Barack Obama.
Christopher Lee Cornell, 22, pleaded guilty in August to three charges, including attempted murder of US officials and employees.
The federal judge had voiced scepticism at Cornell's claims of remorse shortly before Monday's courtroom outburst.
The FBI arrested Cornell, from near Cincinnati, Ohio, in January 2015.
He had planned to carry out an attack to show his support for the Islamic State group during President Obama's State of the Union address that month at the US Capitol, according to court documents.
As he was led out of court in shackles on Monday, Cornell also shouted that the legal system was "rigged".
In March this year he wrote to his family claiming to have renounced his extremism.
He said in the letter: "I hope they can soon see the change in me, understand me, give me the help I need and allow me to get a second chance.
"I'm not a terrorist, a criminal or a bad person, I'm just a kid who suffered from problems, that made some bad decisions and stupid mistakes."
But prosecutors said Cornell had continued to promote violence from jail, calling for others to "fight against the disbelieving people of America".
He was also able to bypass a security program on a jail computer and post an online plea for retribution against a paid FBI informant who had alerted authorities about his plot, authorities said.