Washington (AP/KXAN) — The man accused of killing 22 people and wounding two dozen more in a shooting that targeted Mexicans in the border city of El Paso, Texas, has been charged with federal hate crimes, the Department of Justice confirmed on Thursday evening.

According to the Department of Justice, Patrick Crusius, of Allen, Texas, will be charged with 22 counts of hate crimes resulting in death, 23 hate crimes involving an attempt to kill, and 45 counts of discharging a firearm.

A manifesto attributed to the suspect in the Aug. 3 shooting, during a busy back-to-school shopping day, said the attack was aimed at scaring Hispanics into leaving the United States.

The shooting happened at a time when immigration officials were trying to manage a crush of migrants at the U.S.-Mexico border and there was political battle over their treatment. El Paso was the epicenter of the influx. President Donald Trump has made cracking down on immigration a hallmark of his administration and the polarizing topic makes headlines around the world.

Eight Mexican nationals were among the victims of the attack at a Walmart store popular with shoppers in nearby Ciudad Juarez, Mexico, just on the other side of the Rio Grande from El Paso.

Crusius, 21, pleaded not guilty to state capital murder charges last year. A telephone call to his defense lawyer in the federal case wasn’t immediately returned Thursday.

The indictment comes as El Paso marks the six-month anniversary of the shooting. Last weekend, the commuter town of San Elizario planted 22 oak trees in honor of the victims. Local news outlets aired remembrances.

The federal charge follows Crusius’ state indictment last fall on a capital murder charge, which could also bring a death sentence. He has been held without bond since the since the shooting and kept isolated from other prisoners, on suicide watch.

Crusius surrendered to police after the attack at a busy Walmart, saying, “I’m the shooter,” and that he was targeting Mexicans, according to an arrest warrant.

In court documents, prosecutors said Crusius published a screed online shortly before the shooting that said it was “in response to the Hispanic invasion of Texas.” It cited, as inspiration, a mass shooting in Christchurch, New Zealand, that killed scores of Muslim residents of that country.

The document parroted some of Trump’s immigration policy rhetoric. El Paso residents such as former Texas Rep. Beto O’Rourke, who was a candidate for the Democratic presidential nomination this year, accused Trump of promoting harmful stereotypes and fueling the idea that the increase in migrant crossings was a coordinated “invasion” by Latinos. The president has denied inciting violence.

Crusius drove more than 10 hours from his grandparents’ house in a Dallas suburb to El Paso to carry out the attack, according to police. A lawyer for Crusius’ family declined to comment Thursday.

In a Thursday statement, the Department of Justice said:

“It is important to note that an indictment is merely a charge and should not be considered as evidence of guilt The defendant is considered innocent until proven guilty in a court of law.”

The charges being announced Thursday are the latest by federal prosecutors following high-profile violent incidents. The Justice Department has brought federal hate crimes charges against a man suspected in a Hanukkah machete attack in New York in December that wounded five people; a man who opened fire at a synagogue in Pittsburgh last year; and a man who killed a woman when he drove into a crowd of protesters at a 2017 white nationalist rally in Charlottesville, Virginia.

___

Attanasio reported from El Paso, Texas. Associated Press Writer Jake Bleiberg in Dallas contributed to this report.