Vermont Sen. Bernie Sanders took shots at both President Donald Trump and the Democratic Party establishment in a campaign speech in Minnesota on Friday.

The campaign rally was for Democratic Minnesota Rep. Keith Ellison — who is running for state attorney general — but Sanders focused much of his speech on the “political revolution” that he said started with his 2016 presidential campaign.

“During the Democratic primary this state and you gave us a major victory and I want to thank you for that,” Sanders said.

“You took on the national establishment, you took on the local establishment and you said we are going to create a government that works for all of us, not just the one percent, thank you very much. And the way that the political revolution works is that ideas that seem radical yesterday, today seem mainstream.” (RELATED: Marxists And Extreme Radicals Seek To Take Over The Democratic Party)

He also thanked Ellison “for working with me to tell the Democratic Party that the time is long overdue to open the doors and create a Democratic Party which is a party of working people, of young people — not of big money interests.”

Sanders repeatedly blasted Trump throughout his speech.

“Trump is working day and night to divide our people up based on the color of their skin, based on their gender, based on their sexual orientation, based on their religion, based on the country they were born,” the senator said.

“But we all know for so many years, so many people have struggled to end racism and discrimination and sexism and we say to Trump we are not going backward we are going forward.” (RELATED: Dem Senator Worries His Party Is Going Too Far Left)

He later accused Trump of abandoning his commitment to the working class.

Sanders is technically an independent, although he caucuses with Democrats in Congress and was the runner-up for the Democratic Party’s presidential nomination in 2016.

He’s widely considered to be positioning himself for another potential run in 2020.

Follow Hasson on Twitter @PeterJHasson

Content created by The Daily Caller News Foundation is available without charge to any eligible news publisher that can provide a large audience. For licensing opportunities of our original content, please contact licensing@dailycallernewsfoundation.org.

Content created by The Daily Caller News Foundation is available without charge to any eligible news publisher that can provide a large audience. For licensing opportunities of our original content, please contact licensing@dailycallernewsfoundation.org.