Twin Bronx brothers have been arraigned on federal terror charges after prosecutors say they were stockpiling explosives.

FBI agents raided the Pehlam Parkway home of Christian and Tyler Toro on Thursday.

They found 30 pounds of explosive chemicals as well as fireworks and gun powder in their apartment.

Christian Toro is a former city teacher, who resigned from his post at Democracy Prep Harlem High School last month.

He quit shortly after a student was arrested for calling in a bomb threat to the school in December.

After his resignation, his brother Tyler returned Christian's work laptop to the school. According to the criminal complaint a copy of the “Explosives Book” was found on the computer.

"Neither of these two individuals were on our radar before this," said NYPD Deputy Commissioner John Miller.

"The staff at the school did something very important. Their work was crucial here as well and I want to thank them for their vigilance and their diligence and the smart work they did in immediately alerting law enforcement," said Mayor Bill de Blasio.

Prosecutors say after investigators interviewed Christian Toro and several students at his former school they found that several students had visited Toro’s apartment. He allegedly paid two of them about $50 an hour to break down fireworks and store the gunpowder that came out.

Prosecutors say this went on for more than a year.

The brothers have been charged with Unlawful Manufacture of a Destructive Device and Distribution of Explosive Materials to a Minor.

While searching the apartment law enforcement agents say they also found a card in Christian Torro's backpack that read, "Under the full moon the small ones will know terror."

The NYPD says it could not speculate what that meant.

Also found was a diary written by Tyler Toro. It said, "If you’re registered as a sex offender, things will be difficult. But I am here 100%, living, buying weapons. Whatever we need."

Christian Toro was also arrested on January 31 on charges of raping a minor.

Both brothers entered not guilty pleas during their court appearance Thursday.

A bail hearing is set for February 21 for Christian Toro.