A California man who pleaded guilty to plotting to firebomb the state Democratic Party’s headquarters and other buildings in Northern California must undergo a psychiatric examination, a judge said.

The court wants more information about the mental state of Ian Benjamin Rogers before he is sentenced, Senior U.S. District Judge Charles E. Breyer wrote in an order filed in San Francisco on Friday.

Prosecutors said Rogers and another man conspired to attack targets they associated with Democrats after former President Donald Trump’s defeat in the November 2020 presidential election, including the California governor’s mansion and buildings for social media companies Facebook and Twitter.

CALIFORNIA STABBING SPREE: ONE PERSON KILLED, THREE PEOPLE WOUNDED IN LONG BEACH ATTACKS; SUSPECT IN CUSTODY

Breyer on Friday ordered sentencing documents turned over to a psychiatrist to "assess the defendant’s mental condition, recommend an appropriate course of treatment, if any, and assess the defendant’s dangerousness," according to the order cited Monday by the Sacramento Bee.

Ian Benjamin Rogers

Ian Benjamin Rogers of California is seen here in his mugshot photo after police arrested him for plotting to blow up the state's Democratic HQ. (Napa County Sheriff's Office via AP, File)

A report is due within 60 days. Rogers' Oct. 27 sentencing date was postponed.

Rogers, of Napa, pleaded guilty in May to conspiring to destroy the building in Sacramento by fire or explosives, possessing an explosive device and possessing a machine gun as part of an agreement that could bring him seven to nine years in federal prison.

But three weeks ago, Breyer rejected the proposed plea agreement, saying he was concerned that Rogers hadn't shown any remorse for his actions and had told probation officials for a pre-sentencing report that he only felt bad for putting himself in a situation "that allowed the government to destroy my life."

CLICK HERE TO GET THE FOX NEWS APP

The judge said: "I have to say in ... 23 years I’ve never seen that type of statement. I’ve never seen a defendant come in and simply say I regret I was caught."

A co-defendant, Jarrod Copeland, previously pleaded guilty to conspiracy and destruction of records. He also was scheduled to be sentenced on Oct. 27.