Former Rep. Beto O'Rourke Beto O'RourkeJimmy Carter says his son smoked pot with Willie Nelson on White House roof O'Rourke endorses Kennedy for Senate: 'A champion for the values we're most proud of' 2020 Democrats do convention Zoom call MORE (D-Texas) compared rhetoric used by President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE to describe immigrants to language from Nazi Germany, according to videos shared on social media on Friday.

"I compared the rhetoric that the president has employed to rhetoric that you might've heard during the Third Reich," said O'Rourke, who's running for president in 2020.

“Calling human beings an ‘infestation’ is something that we might have expected to hear in Nazi Germany,” he added. “Describing immigrants who have a track record of committing violent crimes at a lower rate than native-born Americans as rapists and criminals, seeking to ban all Muslims, all people of one religion, what other country on the face of the planet does that kind of thing?”

ADVERTISEMENT

"You draw your own conclusions," he continued. "But this is not something I expected to hear the president of the United States of America ever say."

WATCH: Beto O'Rourke compares President Trump's rhetoric and actions on immigration to rhetoric and actions he would expect to have heard during Nazi Germany's Third Reich. pic.twitter.com/FhTv74eqCF — NBC News (@NBCNews) April 5, 2019

O'Rourke made the comments Thursday at a town hall in Iowa, according to The Washington Post, which reported that the presidential contender also warned about the need to "call out racism."

“If we don’t call out racism, certainly at the highest levels of power, in this position of trust that the president enjoys, then we are going to continue to get its consequences,” O’Rourke said, according to the Post. “Silence is complicity in what this administration is doing, so let’s call it out. Let’s also define a better future for this country, and that’s what I’ve been trying to do in this campaign.”

Trump has made a number of controversial comments about immigrants, including tweeting in June that immigrants were coming to "infest our country."

He has also referred to MS-13 gang members, a group he has often pointed to as evidence for immigrant criminality, as "animals."

The White House did not immediately reply to a request for comment from The Hill.