Now available in NYC · more cities coming soon
CertRent CertRent Rent with confidence
← All guides Renter help

Locked out by your landlord? Illegal lockouts in NYC

By the CertRent editorial team Updated July 2026 Reviewed against official NYC & federal sources

If your landlord has changed the locks, blocked your door, tossed your things out, or shut off your heat, hot water, gas, or electricity to force you to leave — take a breath, because the law is firmly on your side. In New York City, no landlord can evict you on their own, ever. Only a New York City marshal acting on a court order can legally remove a tenant. Everything else is an illegal lockout, and it is not just a civil wrong — it is a crime. You have the right to get back into your home, and you can make that happen fast, often the same day. This guide walks you through exactly what to do.

Right now: If you are locked out and need back into your home today, call 911 and tell the police it is an illegal lockout and that you live there. If they cannot help on the spot, go to your borough's Housing Court and ask for an emergency order to be restored to possession — it is free to file and can be decided the same day.

What the law says

In New York, an eviction is a court process from start to finish. A landlord who wants you out has to take you to Housing Court, win, get a warrant of eviction, and then a licensed New York City marshal (or sheriff) is the only person allowed to physically remove you — after giving you at least 14 days' written notice. A landlord can never skip that process and force you out themselves. Doing it themselves is called "self-help" eviction, and it is flat-out illegal.

Two laws matter most here:

  • NYC Administrative Code §26-521 (Unlawful Eviction). In New York City it is illegal for anyone to evict or attempt to evict an occupant who has lived in a unit for 30 days or more (or who was legally allowed to be there) by any means other than a court eviction carried out by a marshal. That includes changing or removing the locks, taking your door off, removing your belongings, using or threatening force, or cutting off essential services like heat, water, gas, or electricity. Violating it is a misdemeanor, and the NYPD can arrest the landlord.
  • Real Property Law §768. This state law makes unlawful eviction a class A misdemeanor and lets a court impose a civil penalty of $1,000 to $10,000 for each violation, on top of anything else you are owed.
  • RPAPL §853. If you are illegally locked out or forced out, you can sue for treble (triple) damages — three times what the lockout actually cost you — plus, in many cases, your attorney's fees.

Notice what is not a loophole: it does not matter whether you are behind on rent, whether your lease ended, whether you never had a written lease, or whether the landlord swears the apartment is theirs. If you have been living there, you have possession, and possession can only be taken away by a court and a marshal. A landlord who owes you a legal eviction and instead grabs a locksmith has broken the law, full stop.

What to do — step by step

  1. Call 911 and report an illegal lockout. Tell the officers plainly: "This is my home, I've lived here more than 30 days, and my landlord illegally locked me out." Ask them to help you get back in. Bring any proof you live there — a lease, a piece of mail with your name and address, a utility bill, a bank statement, a rent receipt, even photos of you in the apartment. If one officer is unsure, politely ask for a supervisor; illegal lockout is a crime the NYPD is required to take seriously.
  2. Document everything immediately. Take dated photos and videos of the changed lock, the blocked door, your belongings, or the shut-off utilities. Write down the date and time it happened, what the landlord said, and the names of any witnesses (neighbors, the super, a locksmith). Save texts, voicemails, and emails. This evidence is what wins your case and your damages.
  3. Notify the landlord in writing. Send a short message by text or email stating that you are locked out of your home, that this is an unlawful eviction under NYC Administrative Code §26-521, and that you demand to be let back in immediately. Keep a copy. You do not need fancy legal language — you need a dated record that you asked and they refused.
  4. Call 311. Ask to report an illegal lockout / unlawful eviction. 311 can connect you to the NYPD, to the city's Tenant Protection resources, and to the Mayor's Office to Protect Tenants. If your heat, hot water, gas, or electricity was cut off, also file a heat/utility complaint with HPD through 311.
  5. Go to Housing Court and file an "illegal lockout" case (order to show cause). Go to the Housing Part of the Civil Court in the borough where you live and tell the clerk you were illegally locked out and want to be restored to possession. There is no filing fee for this, and you do not need a lawyer to start it. A judge can sign an emergency order — sometimes the same day — directing the landlord (and often the police) to let you back in.
  6. Get free legal help. New York City has a right to counsel for many tenants and a network of free legal-aid groups (see below). Call before or right after you file — they can walk you through the order to show cause and may represent you in court at no cost.
  7. Follow through on penalties. Once you are back home, you can pursue the landlord for damages — triple your losses under RPAPL §853 and civil penalties under RPL §768 — and, if you want, ask the police or the District Attorney to pursue criminal charges. A tenant attorney can advise on what is worth pursuing.

Illegal lockout vs. a legal eviction — at a glance

What happenedLegal or illegal?What you can do
Landlord changed the locks or removed your doorIllegal lockout (§26-521)Call 911 & 311; file for restoration in Housing Court
Landlord shut off your heat, water, gas, or electricityIllegal — unlawful eviction & a service violationCall 911/311; file HPD complaint; Housing Court
Landlord removed or withheld your belongingsIllegal self-help evictionDocument it; Housing Court; sue for treble damages (§853)
Landlord threatened or used force to make you leaveIllegal — and a crimeCall 911; report to NYPD & the DA
A city marshal posted a Notice of Eviction after a court judgmentLegal (the only lawful eviction)Get legal help fast; you may ask the court to stop or delay it

Where to get free help

  • NYC 311 — report an illegal lockout, no heat/hot water, or utility shut-off. Call 311 (or 212-639-9675) or visit portal.311.nyc.gov.
  • NYPD — call 911 for a lockout in progress. An illegal lockout is a crime and the police can order the landlord to let you back in.
  • NYC Housing Court Answers — free help understanding your case and filling out an order to show cause. Hotline 212-962-4795; cwtfhc.org.
  • NYC Tenant Helpline / Office of the Tenant Advocate — call 311 and ask for the Tenant Helpline, or reach the Mayor's Office to Protect Tenants at nyc.gov/tenants.
  • Legal Aid Society & legal-services groups — free representation for eligible tenants. Access-A-Lawyer / Right to Counsel line: 212-577-3300; legalaidnyc.org.
  • NYC HRA — Office of Civil Justice — connects tenants to free lawyers under NYC's right to counsel. Learn more at nyc.gov/site/hra.
  • NYS Attorney General — Tenants' Rights Hotline1-800-771-7755 to report unlawful eviction and landlord harassment.

Frequently asked questions

What should I do if my landlord locks me out?

Call 911 right away and tell the police it is an illegal lockout and you live there — they can order the landlord to let you back in. Then take photos, call 311, and go to your borough's Housing Court to file for an emergency order to be restored to your home. It is free and you do not need a lawyer to start.

What if the police won't help me get back in?

Sometimes an officer treats a lockout as a "civil matter." It is not — illegal lockout is a crime under NYC Administrative Code §26-521 and RPL §768. Politely ask for a patrol supervisor, show proof that you live there (mail, a lease, a bill), and say the words "unlawful eviction." If they still won't act, go straight to Housing Court for an order to show cause; a judge can direct the police to help restore you.

Can my landlord lock me out if I don't have a lease?

No. You do not need a written lease to be protected. If you have lived in the unit for 30 days or more, or were lawfully allowed to live there, you have possession and can only be removed by a court and a marshal. Landlords cannot use "you never signed a lease" or "you owe rent" as an excuse to change the locks.

Can my landlord shut off my electricity, heat, or water to make me leave?

No. Cutting off essential services — heat, hot water, gas, or electricity — to force you out is itself an unlawful eviction and a separate violation. Report it to 311 and HPD, document the shut-off, and raise it in Housing Court. You can be awarded damages for it.

What are the penalties for an illegal lockout in NYC?

An unlawful eviction is a class A misdemeanor, and a court can impose a civil penalty of $1,000 to $10,000 per violation under RPL §768. On top of that, RPAPL §853 lets you sue for triple (treble) damages — three times your actual losses — and you may recover attorney's fees. The landlord can also be arrested.

How fast can I get back into my apartment?

Often the same day. The police can restore you on the spot, and Housing Court's order to show cause for an illegal lockout is designed to be heard quickly — frequently the day you file or the next court day. Bring proof you live there so the judge can act fast.

Is this landlord harassment, and can I do something about it?

Yes. Repeated lockout attempts, service shut-offs, and threats to force you out are forms of tenant harassment, which is illegal in NYC. Beyond getting restored, you can report harassment to HPD, the Mayor's Office to Protect Tenants, and the NYS Attorney General, and a tenant attorney can help you seek penalties.

Official sources

You are not powerless here. An illegal lockout is one of the few housing problems with a genuinely fast fix, because the law treats your home as yours until a court says otherwise. To understand your broader protections, read our guide to NYC renter rights, learn who actually owns your building so you know who to hold accountable, and see how tenants in this position can still protect their rental record. Ready-to-send letters are in our free templates, and more plain-English explainers live in our resource library.

This guide is educational information, not legal advice. Facts current as of July 2026; laws change — verify with the official sources above, and for your specific situation talk to a tenant attorney or legal-aid group (many are free).

Ready to put this to work?

Build a verified renter profile free, or create a landlord account to view one.