Beware, landlords who ignore city laws against Airbnb subleasing.

In a first-of-its-kind decision, a Manhattan judge has ordered that an independent manager take over two Midtown properties where the owner has allegedly continued to let renters sublease apartments on Airbnb — flouting multiple citations and an injunction ordering him to stop.

The state-court decision calls the two properties — at 334 W. 46th St. and 15 W. 55th St. — “public nuisances” and orders that an independent manager be brought in as receiver.

Immediately after Monday’s decision, the properties’ owner, Salim Assa, marched his lawyers uptown to the state Appellate Division on Thursday, winning an emergency stay that will forestall any appointment of an independent manager until an appeal is hashed out.

Still, the city hailed the lower court decision, by Manhattan Supreme Court Justice James E. d’Auguste, as a victory.

“This decision should serve as a warning that the City does not limit its enforcement efforts to issuing violations,” said Catherine Wan, Deputy Director of the Mayor’s Office of Special Enforcement.”

Between October 2013 and February 2015, the city Department of Buildings issued some 100 notices of violations to Assa’s buildings, citing them for ignoring building and fire codes by running the properties as short-term hotels.

The Manhattan Supreme Court decision is the latest action in a nuisance-abatement lawsuit filed by the city against Assa back in February 2015.

A preliminary injunction barring the properties’ use as short-term hotels had been agreed on in March 2016, but Assa’s renters continued subleasing anyway, city lawyers contended. City DOB inspectors caught Assa red-handed, the lawyers said.

In his decision, Justice d’Auguste wrote, “It appears that despite receiving over one hundred building and fire violations, criminal court summonses regarding the illegal use and occupancy of the properties, being sued by the City in the instant action, and being enjoined from using the properties as illegal short-term hotels pursuant to the preliminary injunction in place, the Owner Defendants have taken minimal steps to remedy the alleged illegal use and occupancy.”

The judge appointed Manhattan attorney Darren R. Marks as receiver of the two properties; if Monday’s decision is upheld on appeal, Marks would be authorized to run the buildings, including collecting rents.

“We believe the law to be on our side. We will continue to defend our hard fought Supreme Court victory to put in place a receivership at these buildings,” said Alexander Schnell, spokesman for the Mayor’s Office of Special Enforcement.

Assa’s lawyer, Anthony Genovesi, told The Post that landlords are being ‘victimized’ and that the renters and subleases are the ones violating the law with no repercussions.

“There is an incongruity to prosecuting a landlord for something the landlord did not do and is not able to prevent,” Genovesi said. “The tenants in this case have absolutely no downside to violating the law. The city is not issuing tenants any violations, and they have not issued any subtenants any violations.”

“The landlords can’t control a tenant’s bad decision. In this case, the landlord did absolutely nothing wrong and had no involvement in any temporary residences. The landlord terminated the lease of any and every tenant who permitted a temporary residence.”