The gun-wielding Texas man accused of opening fire at an El Paso Walmart last summer, killing 22 people, was hit with a 90-count indictment Thursday charging him with federal hate crimes.

Patrick Crusius, 21, who already faces capital murder charges in state court, is now facing the new federal charges for allegedly targetting Hispanics.

Crusius told police he targeted Mexicans when he walked into the Texas retailer with an AK-47 assault rifle Aug. 3 and began firing — with eight Mexican citizens among the dead.

He also posted a racist screed online complaining of the “Hispanic invasion of Texas,” writing that he was “simply defending my country from cultural and ethnic replacement brought on by an invasion.”

Crusius pleaded not guilty when he was arraigned on capital murder charges in state court on Oct. 10.

The new federal charges include multiple counts each of hate crime involving attempt to kill, hate crime resulting in death, and use of a firearm during and in retaliation to a crime of violence.

The indictment comes as El Paso marked the six-month anniversary of the mass shooting. Last weekend the nearby Texas town of San Elizario planted 22 oak trees in remembrance.

The shooting came during a busy back-to-school shopping day at the store — a popular destination for residents of Ciudad Juarez in Mexico, just across the US border from El Paso.

Mexican President Andres Manuel Lopez Obrador said less than two weeks after the shooting that he wanted to have Crusius extradited to the Central American nation to be tried there as well.

With Post wires