Presidential candidate and former congressman Beto O'Rourke speaks with the media outside the Walmart store in the aftermath of a mass shooting in El Paso, Texas, Sunday, Aug. 4, 2019. (AP Photo/Andres Leighton)
Andres Leighton/AP
Presidential candidate and former congressman Beto O'Rourke speaks with the media outside the Walmart store in the aftermath of a mass shooting in El Paso, Texas, Sunday, Aug. 4, 2019. (AP Photo/Andres Leighton)
Now playing
01:18
O'Rourke on Trump: You know the sh** he's been saying
CNN
Now playing
01:12
Tapper asks Buttigieg for infrastructure plan timeline
Now playing
02:48
GOP governor calls Trump's RNC remarks 'divisive'
WASHINGTON, D.C. - APRIL 19, 2018:  The U.S. Supreme Court Building in Washington, D.C., is the seat of the Supreme Court of the United States and the Judicial Branch of government. (Photo by Robert Alexander/Getty Images)
Robert Alexander/Getty Images
WASHINGTON, D.C. - APRIL 19, 2018: The U.S. Supreme Court Building in Washington, D.C., is the seat of the Supreme Court of the United States and the Judicial Branch of government. (Photo by Robert Alexander/Getty Images)
Now playing
02:39
SCOTUS blocks California Covid restriction on religious activities
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
Now playing
02:13
Rep. Clyburn blasts GA voting law: It's the 'new Jim Crow'
Joe Manchin
CNN
Joe Manchin
Now playing
02:03
'I never thought in my life ...' Why Manchin won't walk away from bipartisanship
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Alex Wong/Getty Images
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Now playing
06:11
'Bombastic, antagonistic, unapologetic': A look at Gaetz's political career
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Michael A. McCoy/AP
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Now playing
02:42
Boehner says Republican colleague held 10-inch knife to his throat outside House floor
President Joe Biden, accompanied by Vice President Kamala Harris, and Attorney General Merrick Garland, speaks about gun violence prevention in the Rose Garden at the White House, Thursday, April 8, 2021, in Washington.
Andrew Harnik/AP
President Joe Biden, accompanied by Vice President Kamala Harris, and Attorney General Merrick Garland, speaks about gun violence prevention in the Rose Garden at the White House, Thursday, April 8, 2021, in Washington.
Now playing
02:05
Biden calls for ban on assault weapons
CNN
Now playing
02:22
Biden: High-speed internet is infrastructure
AFP/Getty Images
Now playing
03:24
Donald Trump breaks his silence on Matt Gaetz
CNN/WLOX
Now playing
01:43
'He says the quiet part out loud': Borger reacts to GOP election official's remark
AFP/Getty Images
Now playing
02:30
Haberman: Trump had to be talked out of defending Matt Gaetz
CNN
Now playing
03:26
Georgia's Lt. governor says elections law was a result of Trump's misinformation
Now playing
02:38
GOP lawmakers can't give examples of why states need anti-transgender sports bills
CNN
Now playing
03:04
Avlon reacts to McConnell's advice to corporations
(CNN) —  

Democratic presidential candidate Beto O’Rourke reacted angrily Sunday to an inquiry about the motivations behind the deadly massacre in El Paso, Texas, where the shooter allegedly targeted immigrants, saying “connect the dots” because President Donald Trump is “promoting racism.”

The comment from O’Rourke came during a vigil for victims of the shooting, which left at least 20 dead, after the former Texas congressman and El Paso native was asked by a reporter, “Is there anything in your mind that the President can do now to make this any better?”

“What do you think? You know the s— he’s been saying. He’s been calling Mexican immigrants rapists and criminals. I don’t know, like, members of the press, what the f—? Hold on a second. You know, I — it’s these questions that you know the answers to,” O’Rourke replied.

He continued: “I mean, connect the dots about what he’s been doing in this country. He’s not tolerating racism, he’s promoting racism. He’s not tolerating violence, he’s inciting racism and violence in this country. So, you know, I just — I don’t know what kind of question that is.”

The alleged shooter, a 21-year-old white supremacist, is believed to have authored a racist, anti-immigrant document that laid out a dark vision of America overrun by Hispanics, according to police.

Later Sunday night on Twitter, O’Rourke said, “I stand by what I said.”

“We know what Trump is doing. He stokes racism. He incites violence. We shouldn’t be asking if there’s anything he can do or if he’s responsible for this when we know the answer,” he tweeted.

Asked on Sunday by CNN’s Jake Tapper whether he thinks Trump, who has regularly used incendiary language at rallies across the country, is a white nationalist, O’Rourke said he does.

“The things that he has said both as a candidate and then as the President of the United States, this cannot be open for debate,” O’Rourke said on “State of the Union.”

After the shooting on Saturday, Trump called the tragedy an “act of cowardice” and said there “are no reasons or excuses that will ever justify killing people.” On Sunday, following another mass shooting in Dayton, Ohio, that left at least nine dead, the President acknowledged that “perhaps more has to be done” to address gun violence, adding that “Hate has no place in our country and we’re gonna take care of it.”

CNN’s Paul LeBlanc and Caroline Kelly contributed to this report.