He’s Mayor Robin Hood.

Burnishing his progressive credentials, Mayor Bill de Blasio portrayed himself as a protector of the working class on Thursday — while proposing a redistribution of wealth — in his sixth State of the City address.

“Brothers and sisters, there’s plenty of money in the world. There’s plenty of money in this city. It’s just in the wrong hands,” said de Blasio, who owns two homes and collects $258,750 a year as mayor.

“You haven’t been paid what you deserve for all the hard work. You haven’t been given the time you deserve. You’re not living the life you deserve. And here is the cold, hard truth: It’s no accident. It’s an agenda,” he continued, blaming Republican presidential administrations from Reagan to Trump.

The mayor proposed initiatives to level the playing field between the haves and have-nots — such as seizing buildings from bad landlords, expanding the Department of Consumer Affairs to include “worker protection” and offering medical care to 300,000 undocumented immigrants.

But critics pointed out the mayor’s corporate handouts.

“I thought there was something a little contradictory when he talks about having a city with a whole lot of money where workers don’t get their fair share and how we’re going to start to be more fair and more equitable,” Bronx Borough President Ruben Diaz Jr. said.

“The irony there is that you’re giving $3 billion away to Amazon [in city and state subsidies],” Diaz continued, adding that he supports the online retail giant’s plans to build a headquarters in Long Island City, Queens, but not the financial incentives offered to it.

Hizzoner also promised to confiscate land from scofflaw landlords and turn the seized properties over to nonprofits under a newly created Mayor’s Office to Protect Tenants.

“When the city’s worst landlords cheat their tenants, we will take their buildings away from them,” he said in the 67-minute speech at the Peter Jay Sharp Theatre at Symphony Space on the Upper West Side.

“If fines and penalties don’t cut it, we will seize buildings and put them into the hands of a nonprofit that will treat tenants with the respect they deserve.”

The details were not announced, but the plan is modeled on the Department of Housing Preservation and Development’s Third Party Transfer program, which forecloses on properties that have fallen into serious disrepair or are behind on taxes.

It was one of many mayoral ideas that recycled existing programs or proposals de Blasio couldn’t push through during his first five years at City Hall.

The Department of Consumer Affairs will be renamed the Department of Consumer and Worker Protection to help freelancers and contract workers get paid quicker while enforcing paid-sick-leave laws and worker vacation requirements.

Such activities already largely fall under its purview.

He also re-upped a 2016 proposal to create a public retirement system for the 2 million New Yorkers who do not have employer-sponsored savings programs.

The plan stalled three years ago due to federal rule changes, but the city is taking another stab at it now that Oregon got one up and running and Seattle is moving in that direction, city officials said.

The city’s version would require employers to either offer retirement to all employees or auto-enroll them in a city-run retirement system.

De Blasio also pledged to expand pre-K for 3-year-olds to 20,000 by 2019 instead of 19,000 by 2021, while also extending a program that gives free vision checks and glasses to 5- and 6-year-old schoolchildren.

The city expects about 33,000 kids to get the glasses, supplied free by the eyeglass-making company Warby Parker.

The mayor, whose own eye has shifted outside New York as he seeks to raise his national profile, plugged his previously announced plan to expand the city’s MetroPlus public health care system as proof that New York is a progressive bastion battling a regressive national current.

“This country has spent decades taking from working people and giving to the 1 percent. This city has spent the last five years doing it the other way around,” he said.

He also took shots at Albany over the state of the city’s subways, although his gripes may have fallen on dead ears.

“I am not listening to it right now,” Gov. Andrew Cuomo told WNYC on Thursday. “I’m in Albany.”