Landlord changed the locks in NYC? What to do about an illegal lockout.
In NYC, a landlord who changes your locks, removes your door or throws out your things without a court order is breaking the law. It's a crime. Here's the 30-day rule, who to call first, how to get back in through Housing Court, and what a landlord has to do instead.
Call 911. In NYC, if you've lived in a place for 30 days or more, or you have a lease, it's illegal for anyone to lock you out, change the locks without giving you a key, remove your door or your belongings, or cut essential services to push you out. It's a class A misdemeanor under NYC Admin Code 26-521 and state RPAPL 768, with civil penalties of $1,000 to $10,000 per violation. If the police can't get you back in, go to Housing Court right away and ask to be restored to your home.
- →The only legal way to remove a tenant is a court case, then a warrant of eviction carried out by a marshal or sheriff, with at least 14 days' written notice, on a business day between sunrise and sunset.
- →An owner who is asked to restore you and doesn't can owe up to $100 more per day, for up to 6 months.
- →Protection applies regardless of immigration status, and it starts the day you move in if you have a signed lease.
You come home and your key doesn’t work.
The lock is new. Maybe your stuff is in the hallway. Maybe there’s a note on the door.
Your landlord just did something that’s illegal in New York City. Not “unfair.” Illegal. A crime.
Here’s what to do, as of October 25, 2026.
Can my landlord change the locks in NYC?
Not to keep you out.
The law is NYC Administrative Code 26-521. The state has a matching law, RPAPL 768.
Both make it unlawful to evict, or try to evict, someone who:
- Has lived there 30 days or more. Lawfully, for 30 consecutive days or longer.
- Or has a lease. With a signed lease, the city says you’re protected from the day you move in.
You don’t need to be on a lease to hit the 30-day mark. And the city says this applies regardless of immigration status.
The one thing that doesn’t count: a squatter. State law says a tenant doesn’t include one.
What counts as an illegal lockout or illegal eviction?
The law lists the moves. A landlord can’t:
- Change the lock without giving you a key.
- Remove, plug or break the lock on your door.
- Remove your door.
- Remove your belongings.
- Use or threaten force to get you to leave.
- Cut essential services. Or make your life miserable to push you out.
The only exceptions are a warrant of eviction, another court order, or a government vacate order.
Letters, verbal threats and notices don’t count either. The city is clear that they don’t require you to leave.
Is an illegal lockout a crime in NYC?
Yes.
- Class A misdemeanor. Anyone who intentionally violates the law, or helps someone do it, is guilty of one. Each violation is a separate offense. Under New York Penal Law, that can mean up to 364 days in jail.
- Civil penalties. $1,000 to $10,000 for each violation.
- Failure to restore. If you ask the owner to put you back and they don’t, they can owe up to $100 more per day, for up to 6 months.
- Treble damages. Under RPAPL 853, a person put out of their home in a forcible or unlawful manner can sue for 3 times their damages.
And the owner has a duty to restore you. If they did it, knew about it, or it happened within 7 days before you asked, they have to take all reasonable steps to get you back in.
What should I do first if I’m locked out? Call 911
Yes, 911. This is a crime in progress.
- Call 911. The city says NYPD can keep the peace while you regain access, and may act if there’s probable cause of an unlawful eviction.
- Stay calm on camera. Record the new lock, the note, your things in the hall. Get the officer’s name and the report number.
- Show you live there. Your lease, ID with the address, mail, a utility bill. This is how you prove the 30 days.
- Call 311. Ask for the Tenant Helpline. They can refer you to free legal help.
What if the police can’t get me back in?
Go to Housing Court. Today.
The city says to go to the Housing Court in your borough right away. You file an emergency Order to Show Cause asking to be restored to possession. That’s what people call an illegal lockout proceeding.
Lockout cases in NYC Housing Court are brought under state law, RPAPL 713(10). It lets a person who was peaceably living somewhere bring a case against whoever put them out by force or unlawful means. No notice to quit is needed.
The courts are generally open from 9am to 4:30 or 5pm. File in the borough where the apartment is:
- Manhattan. 111 Centre Street.
- Brooklyn. 141 Livingston Street.
- Bronx. 851 Grand Concourse.
- Queens. 89-17 Sutphin Boulevard, Jamaica.
- Staten Island. 927 Castleton Avenue.
Bring everything that proves you live there.
How do I report a lockout to HPD?
HPD treats this as harassment.
- It’s on HPD’s list. HPD says an illegal eviction or attempted illegal eviction is harassment, including changing the lock without giving you a key, or removing the door or lock.
- Utility shutoffs. Call 311 and ask for HPD. HPD inspects and may issue a violation.
- The Anti-Harassment Unit. If the owner is withholding essential services or skipping repairs to force you out, HPD says to contact its Anti-Harassment Unit through 311. HPD’s newer page says the unit gets those referrals through the NYC Tenant Protection Cabinet, also by calling 311.
- Bigger patterns. HPD’s Tenant Harassment Prevention Task Force does joint inspections with other agencies and can pursue enforcement, including criminal charges.
- Court. You can also bring a harassment claim in Housing Court.
Here’s where every kind of NYC landlord complaint goes.
What is a landlord legally supposed to do instead?
Go to court. There’s no other way.
Under RPAPL 711, no tenant or lawful occupant can be removed except through a special proceeding. That means:
- A court case. Nonpayment or holdover, filed in Housing Court.
- A judgment. A judge has to rule for the landlord.
- A warrant of eviction. Issued by the court.
- 14 days’ written notice. From the marshal or sheriff, under RPAPL 749.
- The marshal does it. On a business day, between sunrise and sunset.
Not the landlord. Not the super. Not a locksmith. Not a “moving crew.”
If you actually want out of your lease, there’s a legal way for you, too. Here’s how to break a lease in NYC.
What I would tell a friend who just got locked out
- Don’t break back in. Call 911 and let the police handle the door.
- Don’t go quiet. Call 311 the same day, for the Tenant Helpline.
- Get to Housing Court fast. The emergency order is how you get your keys back.
- Document everything. Photos, video, names, times, the police report number.
- Keep proof of your home. A copy of your lease and a dated bill in your phone at all times.
The take
A new lock isn’t an eviction. It’s a crime.
This is general information, not legal advice. For your situation, call 311 and ask for the Tenant Helpline, or talk to a free tenant legal services provider.
“A new lock isn't an eviction. It's a crime.”
Frequently asked questions
Can a landlord change the locks in NYC?
Not to keep you out. NYC Admin Code 26-521 makes it unlawful to evict or try to evict an occupant who has lawfully occupied a unit for 30 consecutive days or longer, or who has a lease, by changing the lock without supplying a key, removing or disabling the lock, removing the door, removing their possessions, using or threatening force, or interrupting essential services. The only exception is a warrant of eviction, other court order, or a government vacate order.
Is an illegal lockout a crime in NYC?
Yes. Under NYC Admin Code 26-523 and RPAPL 768, anyone who intentionally violates the unlawful eviction law, or helps someone do it, is guilty of a class A misdemeanor, with each violation a separate offense. Under New York Penal Law 70.15, a class A misdemeanor carries up to 364 days in jail. There are also civil penalties of $1,000 to $10,000 per violation.
What should I do if my landlord locks me out?
Call 911. The city says NYPD can keep the peace while you regain access and may act if there's probable cause of an unlawful eviction. Call 311 and ask for the Tenant Helpline for a referral to free legal services. If you still can't get in, go to Housing Court in your borough right away and file an emergency Order to Show Cause to be restored to your home.
Do I have rights if I'm not on the lease?
Often, yes. The unlawful eviction law protects an occupant who has lawfully lived in the unit for 30 consecutive days or longer, even without a lease. If you do have a signed lease, the city says you're protected from the day you move in. State law also says a tenant doesn't include a squatter.
How long does a landlord have to give notice before an eviction in NYC?
There's no shortcut around court. After a judge issues a warrant of eviction, RPAPL 749 requires the officer, a marshal or sheriff, to give at least 14 days' written notice before the eviction, and to carry it out on a business day between sunrise and sunset.
Einhorn, Gabe. “Landlord changed the locks in NYC? What to do about an illegal lockout.” Nessoo Report, Nessoo (nessoo.com), Oct 25, 2026.

Co-founder of Nessoo, the verify-first rental marketplace in New York. He writes every Nessoo Report. nessoo.com
Sources
- NYC Administrative Code 26-521 to 26-524, Unlawful eviction (30 days or lease, prohibited acts, duty to restore, class A misdemeanor, $1,000 to $10,000 per violation, $100 per day up to 6 months) (via nycadmincode.readthedocs.io mirror; amlegal returned 403)
- NY RPAPL 768, Unlawful eviction (statewide version: 30 consecutive days or lease, class A misdemeanor, civil penalties, restoration)
- NY RPAPL 711 (no tenant or lawful occupant removed except in a special proceeding; 30 consecutive days; tenant does not include a squatter)
- NY RPAPL 713(10) (proceeding where a person peaceably in possession was put out by force or unlawful means; no notice to quit required)
- Vazquez v. Suljovic, NYC Civil Court, March 18, 2022 (illegal lockout case brought under RPAPL 713(10) seeking restoration; treble damages under RPAPL 853 left to a separate action) (via FindLaw; nycourts.gov returned 403)
- NY RPAPL 749 (warrant to sheriff or marshal, 14 days' written notice, business day between sunrise and sunset)
- NY RPAPL 853 (treble damages for being put out of real property in a forcible or unlawful manner)
- NY Penal Law 70.15 (class A misdemeanor: up to 364 days)
- NYC Mayor's Public Engagement Unit, Illegal Lockouts (call 911, 311 Tenant Helpline, emergency Order to Show Cause in borough Housing Court, HPD for utility shutoffs, 30 days or lease, immigration status, court addresses)
- NYC HPD, Tenant Harassment (illegal lockouts and changing locks without a key are harassment, contact NYPD if locked out, 311, Anti-Harassment Unit, Tenant Protection Cabinet, Housing Court harassment claims)
- NYC HPD, Report Tenant Harassment (Anti-Harassment Unit referrals via the Tenant Protection Cabinet, Tenant Harassment Prevention Task Force)