The city’s largest landlord group is suing the city to overturn the year-long rent freeze enacted last month — saying the move is a political ploy to win votes by a struggling mayor who “hypocritically” raised the rents for his own tenants.

“It’s the Tale of Two de Blasios,” quipped Joseph Strasburg, president of the 25,000-member Rent Stabilization Association.

“The rent freeze is not based on need, but rather on the perceived inability of tenants to pay, and to accommodate de Blasio’s political agenda of gaining favor with a large segment of the city’s voting block,” he added.

The association’s members own 1 million rent-stabilized units across the five boroughs.

The group accuses the nine-member Rent Guideline Board of acting at the behest of the mayor when the board instituted a rent freeze on 1-year, rent-stabilized leases for the second time in a row.

The plaintiff RSA says 2015 was the first-ever moratorium on rent hikes in the board’s 55-year history.

Mayor Bill de Blasio “has made the rent guidelines process and his rent freeze mantra part of his affordable housing campaign. But affordability has never been the RGB’s mission because it is not allowed by law,” Strasburg said.

Instead the law requires the RGB to consider “the economic condition of the residential real estate industry,” tax, water and sewer rates as well as operating and maintenance costs, according to court papers.

Strasburg called de Blasio a hypocrite for raising rents on his own private homes in Park Slope to over $100,000 for three tenants to keep up with ownership costs.

A rep for the city did not immediately comment.

“Facts are facts, and the RGB independently decided on a rent freeze based on the hard numbers,” said mayoral spokesman Austin Finan.

“First the landlord lobby attacked a water rate rebate for hundreds of thousands of homeowners, and now it’s attacking a rent freeze for more than a million tenants struggling to make ends meet. Mayor de Blasio is fighting for working families, and won’t back down in the face of these political attacks​.​”