A judge has ordered landlord Rose King to shut down her Lower East Side Airbnb rentals — or risk city takeover of her three buildings.

A judge has ordered a Manhattan Airbnb empress to shut down her temporary rentals — or risk city takeover of her three buildings.

Manhattan Supreme Court Judge James D'Auguste decided Monday to grant a temporary restraining order that bars landlord Rose King from renting any short-term units in her East Village and Lower East Side buildings.

She also can't "illegally" advertise short term rentals, the judge said. Those staying in the apartments in question — located at E. 14th St. and Avenue B, Ludlow St. and Rivington Sts. and 127 Rivington and Norfolk Sts. — must also leave within 24 hours.

And if King doesn't comply, the city can move to take over the buildings.

"We have zero tolerance for illegal hotels on our platform in New York. We have removed these listings and launched an investigation into this situation," Airbnb said in a statement. "Since November 2015, we have removed more than 4,200 listings belonging to commercial operators from our platform in New York and will continue to do so moving forward."

Mayor de Blasio’s office welcomed the action.

"We are pleased the court put an immediate stop to illegal activity on our streets, which took critically needed permanent housing off the market and put building residents, their neighbors and visitors in harm's way," said spokeswoman Melissa Grace. "We will seek a permanent injunction and protect apartment buildings from being turned into illegal hotels."

Under New York City law, apartments can't be rented for less than 30 days.