EL PASO, Texas (Reuters) - A Texas man accused of deliberately targeting people of Mexican heritage in a shooting rampage that killed 22 people at an El Paso Walmart WMT.N store last year was charged on Thursday on 90 counts of federal hate crimes.

The charges against Patrick Crusius, 21, included 22 counts under the U.S. classification of hate crimes - violence with an added element of bias - resulting in death, for which he could face the death penalty.

Crusius was charged last year by state courts, where his capital murder trial is in its early stages.

Crusius would now face a separate trial in federal court, John Bash, the U.S. attorney for the western district of Texas, told reporters after the grand jury indictment.

“We all share same goal here - to achieve justice for the families of the victims,” Bash said.

Bash said the El Paso shooting was an act of domestic terrorism and an attack against an entire ethnic group.

“We’re firing on all cylinders to stop this. We’re going to stop hate crimes,” he said.

Crusius is accused of driving 11 hours to El Paso from his hometown of Allen, near Dallas, on Aug. 3 last year and firing at shoppers with an AK-47 rifle inside the Walmart store. He surrendered to officers who confronted him outside.

Crusius confessed while surrendering and told police he was targeting Mexicans, according to an El Paso police affidavit released days after the shooting. Most of those killed were Latinos.

In a manifesto prosecutors say was posted online by Crusius on 8chan, a now-defunct message board often used by extremists, the accused shooter said his Walmart attack “is a response to the Hispanic invasion of Texas.”

The federal indictment quoted the manifesto as also saying that Crusius was “defending my country from cultural and ethnic replacement brought on by the invasion.”

Democrats have said that Republican President Donald Trump’s anti-immigrant and racially charged language at political rallies and on Twitter has fanned racist, white nationalist sentiments, creating a political climate that is conducive to hate-based violence.

Former Texas congressman and El Paso native Beto O’Rourke, at the time of the shooting one of the contenders for the Democratic nomination for president, said Trump “helped create the hatred” that made the massacre possible.

Trump has roundly rejected the criticisms as Democrats looking to score political points off a tragedy.