Presidential candidate Beto O'Rourke blamed the recent El Paso shooting on the country's environment of "open racism," which he claimed is fueled by President Trump, Fox News, and the internet.

The former Texas congressman also told CNN's Jake Tapper on Sunday that more needs to be done than enacting more gun control laws.

"I have to tell you, in addition to universal background checks and in addition to ending the sales of weapons of war into our communities, in addition to red flag laws, we've got to acknowledge the hatred, the open racism that we’re seeing. There is an environment of it in the United States," O'Rourke said.

"We see it on Fox News, we see it on the internet, but we also see it from our commander-in-chief," he continued. "He is encouraging this. He doesn’t just tolerate it, he encourages it, calling immigrants rapists and criminals, warning of an invasion on our border, seeking to ban all people of one religion. Folks are responding to this. It doesn’t just offend us, it encourages the kind of violence we’re seeing, including in my hometown of El Paso yesterday."

The shooter in the attack was arrested by police after killing 20 people and wounding more than two dozen people in a Walmart.

O'Rourke later added that he believes Trump is a white nationalist and likened his rhetoric to that which was heard during the Third Reich. He also recently compared a Trump rally to a Nazi rally.

In a manifesto that appears to have be written by the shooter, he wrote that he wanted to stop the "Hispanic invasion of Texas" and said he was inspired by the mass shootings in two Christchurch, New Zealand, mosques that killed 51 people and injured 49.

Trump tweeted after the shooting, saying it "was not only tragic, it was an act of cowardice."