President Donald Trump drew a torrent of criticism from Democrats on Saturday over a series of Twitter messages aimed at U.S. Rep. Elijah Cummings (D-Md.) and the Baltimore district that Cummings represents in Congress.

Related: Trump Blasts Maryland Democrat for ‘Worst-Run and Most Dangerous’ District

But just a few years ago, Sen. Bernie Sanders (I-Vt.) — a candidate seeking the Democratic Party’s 2020 presidential nomination — took his own shots at Baltimore, a struggling northeast city grappling with high rates of violent crime, drug abuse, poverty and political corruption.

More from LifeZette TV

MORE NEWS: Exclusive: Allie Beth Stuckey urges conservatives: ‘be bold’, ‘be brave’, ‘say the things that you can while you can’

“Anyone who took the walk that we took around this neighborhood would not think you’re in a wealthy nation,” Sanders said during a visit to the city’s West Baltimore section in December 2015, The Baltimore Sun reported. “You would think that you were in a Third World country.”

The independent U.S. senator from Vermont also referred to Baltimore as “a community in which half of the people don’t have jobs.”

Bernie Sanders referred to Baltimore as “a disgrace” just a few short years ago.

Do you agree that protesting is acceptable, but rioting is not? Yes No Email Address (required) By completing the poll, you agree to receive emails from LifeZette and that you've read and agree to our privacy policy and legal statement Results Vote

“We’re talking about a community in which there are hundreds of buildings that are uninhabitable,” he added, according to The Sun.

Sanders was visiting the section of Baltimore where a 25-year-old black man named Freddie Gray was arrested earlier that year for allegedly possessing an illegal knife.

Gray fell into a coma while in police custody and died a few days later, sparking a national outcry against members of the city’s police department.

MORE NEWS: Ep 388 | The 75th Anniversary of the United Nations

But all six police officers who were suspended in connection with the death either had all charges against them dropped, or were acquitted.

In 2016, Sanders posted a Twitter message about Baltimore.

“Residents of Baltimore’s poorest boroughs have lifespans shorter than people living under dictatorship in North Korea,” Sanders wrote.

“That is a disgrace.”

Residents of Baltimore’s poorest boroughs have lifespans shorter than people living under dictatorship in North Korea. That is a disgrace. — Bernie Sanders (@SenSanders) May 5, 2016

The bleak portrait Sanders painted back then seems little different from the one Trump presented Saturday, in which the president said the city had become a monument to governmental failures.

In one message, Trump described Cummings’ district as “a disgusting, rat- and rodent-infested mess.”

“If he spent more time in Baltimore,” the president added, “maybe he could help clean up this very dangerous and filthy place.”

“Where is all this money going?” Trump asked later, referring to federal dollars sent to Baltimore over the years. “How much is stolen? Investigate this corrupt mess immediately!”

Prominent Democrats — including House Speaker Nancy Pelosi (D-Calif.), who was born in Baltimore and whose father was a Baltimore mayor, and presidential candidate Sen. Elizabeth Warren (D-Mass.) — were quick to defend Cummings and fire back at Trump.

Also on Saturday, Sanders appeared to abandon his past critiques of Baltimore and focus instead on defending Cummings and bashing the president.

“Here’s what’s really going on,” Sanders wrote. “@RepCummings has been busy revealing the failures of the Trump administration and exposing the greed of Trump’s friends in the pharmaceutical industry, and our racist president doesn’t like it.”

This Fox News piece is used by permission.

Read more at Fox News:

McDonald’s Employee Accidentally Leaves Mic On, Reveals Hilarious Conversation

Trump Admin Announces Major Crackdown on Asylum Seekers

2020 Dems Reverse Course to Oppose Nearly All Trump Judicial Appointees

The opinions expressed by contributors and/or content partners are their own and do not necessarily reflect the views of LifeZette.