After a bruising defeat at the statehouse, New York City landlords took their fight against the state’s newly toughened pro-tenant rents laws to federal court in Brooklyn, where they alleged the regulations amount to an unconstitutional property grab.

The lawsuit — filed late Monday by two landlord-linked groups and seven property owners — is the latest legal assault against the state’s decades-old rent laws, which have survived previous court challenges.

“Even before the draconian effects of the 2019 amendments, the New York Rent Stabilization Law was antiquated, inefficient and unlawful,” claimed Jay Martin, the executive director of Community Housing Improvement Program, which represents landlords that own smaller buildings and is a plaintiff. “It does not promote socio-economic or racial diversity and in fact, it does not in any way target its relief to low-income populations.”

The 125-page lawsuit targets the state’s rent stabilization law, which covers nearly 1 million New York City apartments — roughly a third of all housing in the five boroughs.

It alleges the rent stabilization law violates the Fifth and 14th Amendments of the US Constitution.

The US Supreme Court refused to hear a similar challenge back in 2012 after the Second Circuit US Court of Appeals backed the state and upheld the rent laws against a challenge from two Manhattan landlords, James and Jeanne Harmon.

“We knew this was coming, they said this a month ago after the law was signed,” said Michael McKee, a longtime tenants activist and treasurer at Tenants PAC. “This is not a surprise, they have sued many times in the past.”

He added: “They’ve lost every single time.”

Under the law, rents hikes are set by the Rent Guidelines Board annually and tenants have additional protections against evictions.

Rent board hikes are often less than increases on the open market, meaning that stabilized apartments bring in less income for landlords than they would fetch with market-rate prices, an arrangement that has frustrated property owners for decades.

The lawsuit comes a month after state lawmakers passed a sweeping overhaul of the rent stabilization system long sought by tenant activists.

That package closed several legal avenues landlords used to deregulate apartments and charge market rate rents and put in new restrictions on rent hikes to pay for building repairs, reversing policies that allowed 290,000 apartments to leave rent stabilization.