An unlawful detainer is a streamlined court case a landlord files to recover possession of a rental property from a tenant who no longer has the legal right to stay. It moves faster than an ordinary civil lawsuit, sometimes reaching trial within weeks, and the court focuses on one question: who is entitled to possession. Along with ordering the tenant out, the judge can award unpaid rent, damages, and court costs in the same proceeding.
When a Landlord Can File
The most common trigger is nonpayment of rent. To bring that claim, the landlord generally has to show the tenant is still in the unit, the tenancy no longer has the landlord’s permission, rent is overdue, a written notice demanding payment was properly served, and the tenant still hasn’t paid after the notice period expired.1Legal Information Institute. Unlawful Detainer
Nonpayment isn’t the only basis. Landlords can also file when a tenant violates a material lease term, such as keeping unauthorized occupants, causing persistent disturbances, or damaging the unit beyond normal wear. A tenant who stays past the end of a fixed-term lease without permission, or who remains after a valid termination notice on a month-to-month tenancy, is also subject to an unlawful detainer. Waste, meaning conduct that permanently reduces the property’s market value, is another recognized ground.1Legal Information Institute. Unlawful Detainer Using the premises for illegal activity typically allows the landlord to demand the tenant leave with no chance to fix the problem.
The Notice That Comes First
Every unlawful detainer starts with a written notice, and getting it wrong is where most landlord cases fall apart. Before filing anything in court, the landlord has to serve the tenant with a formal notice that matches the reason for the eviction. The type of notice, how much time it gives the tenant, and the method of delivery all vary by jurisdiction, but the categories are consistent across most of the country.
Pay-or-Quit Notices
When the issue is unpaid rent, the notice demands payment within a set number of days or tells the tenant to vacate. The notice period ranges from as little as three days in some states to as long as thirty days in others. The notice has to accurately state the amount owed. A notice that inflates the balance, bundles charges the tenant doesn’t actually owe, or fails to identify how the tenant can pay opens the door to dismissal. If the tenant pays in full before the deadline, the eviction stops.
Cure-or-Quit Notices
For lease violations a tenant can realistically fix, such as an unauthorized pet, a noise complaint, or an unapproved roommate, the landlord serves a notice giving the tenant a set number of days to correct the problem or leave. The notice has to describe the violation specifically enough that the tenant knows exactly what to fix. Vague language like “you are in breach of the lease” isn’t sufficient.
Unconditional Quit Notices
Some violations are serious enough that the law doesn’t require a chance to cure. Using the rental for illegal activity, causing substantial damage, or committing repeated lease violations after prior warnings can justify an unconditional notice to vacate. The tenant gets a short window to leave, often three days, with no option to remedy the situation and stay.
No-Fault Termination Notices
When a landlord wants to end a month-to-month tenancy without alleging wrongdoing, a longer notice period applies. Most states require at least 30 days’ notice, though some require 60 or even 90 days, particularly for long-term tenancies or in jurisdictions with tenant-protection ordinances. Rent-controlled or subsidized housing often has additional restrictions that limit a landlord’s ability to terminate without cause.
Filing and Serving the Lawsuit
Once the notice period expires and the tenant hasn’t complied, the landlord files an unlawful detainer complaint with the local court. The complaint identifies the property, names the tenants, explains why the eviction is sought, and references the notice that was served. Filing fees vary widely by location, typically running anywhere from about $30 to over $400.
The court issues a summons that has to be formally delivered to the tenant, usually by a process server or sheriff’s deputy. The landlord cannot serve the papers personally. Sloppy service is one of the most common reasons cases get thrown out. If the process server can’t find the tenant in person, most jurisdictions allow substitute service, meaning papers are left with another adult at the residence and a copy is mailed. Some states require additional steps before that method is allowed.
A mismatched address, the wrong tenant name, or a complaint that doesn’t align with the notice already served can force the landlord to start over.
Responding as a Tenant
Tenants who receive an unlawful detainer summons face an unusually tight deadline to respond. In many jurisdictions the window is somewhere between five and twenty days, far shorter than the response period in a typical civil case. Missing this deadline is the single worst mistake a tenant can make. The court can enter a default judgment awarding the landlord possession without any hearing, and at that point the tenant has no opportunity to present defenses.
The standard response is a written answer filed with the court, in which the tenant admits or denies each allegation and raises any applicable defenses. Filing the answer preserves the right to a trial. Some jurisdictions also allow motions to quash the complaint, arguing for example that the notice was defective or service was improper, which can halt the case before it reaches the merits.
A tenant who moves out before the deadline avoids the eviction judgment itself, which matters for future housing applications. But leaving doesn’t erase any money the landlord claims is owed. The landlord can still pursue unpaid rent and damages in a separate action or as part of the existing case if it hasn’t been dismissed.
Defenses That Can Stop the Case
An unlawful detainer isn’t automatic just because the landlord filed one. Several recognized defenses can end the case or buy time to negotiate.
Defective Notice
This is the defense that works most often in practice. If the notice demanded the wrong amount of rent, gave too few days, was addressed incorrectly, or wasn’t served through a legally valid method, the case should be dismissed. Courts hold landlords to strict compliance with notice requirements. The landlord can refile with a corrected notice, but that resets the whole timeline.
Uninhabitable Conditions
Nearly every state recognizes an implied warranty of habitability, the principle that a landlord has to keep the rental fit for human occupancy. A tenant’s obligation to pay rent depends on the landlord meeting this standard.2Legal Information Institute. Implied Warranty of Habitability If the unit has serious problems like no heat, broken plumbing, pest infestations, or mold, the tenant may argue the landlord can’t evict for nonpayment when the landlord’s own neglect made the property unlivable. The strength of this defense varies by state, and tenants who documented the conditions and notified the landlord in writing are in the strongest position.
Retaliation
Landlords cannot evict tenants for exercising legal rights, such as reporting code violations, requesting legally required repairs, or participating in a tenant organization. Many states presume retaliation if the landlord files for eviction within a certain period after the tenant takes one of these protected actions, often six months, though the timeframe varies.3Legal Information Institute. Retaliatory Eviction Once a tenant raises this defense, the burden typically shifts to the landlord to prove the eviction was motivated by something else. Not every state has a retaliation statute, but most provide some form of protection through case law or statute.
Discrimination
The federal Fair Housing Act prohibits evictions motivated by a tenant’s race, color, national origin, religion, sex, familial status, or disability. Many state and local laws add additional protected categories. A tenant who can show the eviction targets them because of a protected characteristic, or that the landlord applies rules selectively against tenants sharing that characteristic, has a powerful defense that can also expose the landlord to separate liability.
Acceptance of Rent
If a landlord accepts rent after serving a notice, that payment can waive the right to proceed with the eviction. Accepting even a partial payment after a pay-or-quit notice changes the amount owed and can make the original notice defective. The tenant can raise this as an affirmative defense and, in many cases, get the case dismissed. Landlords who accidentally accept a payment mid-eviction generally have to refund it immediately and start the notice process over.
The Trial
Unlawful detainer trials are designed to move fast. Most jurisdictions set them within a few weeks of the tenant’s answer. Both sides typically get a single day in court, and the evidence is limited to the core question of possession. This isn’t the place to litigate every grievance in the landlord-tenant relationship, though the defenses described above are fully heard.
If the landlord proves the eviction is justified, the court enters a judgment for possession. The judgment may also include unpaid rent, damages to the unit, court costs, and in some cases attorney fees if the lease provides for them. If the tenant wins, because the notice was defective, the defense was strong, or the landlord simply didn’t prove the case, the tenant stays and the landlord has to decide whether to correct the problem and try again.
After the Judgment: The Lockout
Winning a judgment doesn’t mean the landlord can walk in and change the locks that afternoon. The landlord has to obtain a writ of possession from the court, a document authorizing law enforcement to physically remove the tenant if necessary. The timeline between judgment and actual lockout varies by jurisdiction. Some courts issue the writ within days; others build in a waiting period to give the tenant time to leave voluntarily.
Once the sheriff or marshal arrives to execute the writ, the tenant typically gets a very short window, sometimes as little as 15 or 20 minutes, to gather personal belongings and leave. Most states require the landlord to store any property left behind for a set number of days (commonly seven or more) before disposing of it.
Tenants who want to fight the judgment after the fact can file a motion to vacate the default judgment (if they missed their response deadline) or appeal the trial court’s decision. These options are time-sensitive and rarely succeed without a strong procedural argument.
Why Landlords Can’t Skip the Court Process
Some landlords try to shortcut the system by changing the locks, shutting off utilities, removing the tenant’s belongings, or making the unit so unpleasant the tenant feels forced to leave. Every state prohibits these self-help tactics. It doesn’t matter how far behind on rent the tenant is or how clearly they’ve violated the lease. The only lawful path to removing a tenant is through the court system.
Landlords who resort to self-help face real consequences. Courts can order them to let the tenant back in immediately, pay the tenant’s temporary housing costs, and compensate for damaged or lost property. Many states allow the tenant to recover statutory damages, often measured as a multiple of monthly rent, on top of actual losses. In some jurisdictions, an illegal eviction is a criminal misdemeanor.
What the Filing Does to a Tenant’s Record
An eviction case creates a public court record the moment it’s filed, not when it’s decided. Even tenants who win their case or reach a settlement may have the filing show up on background checks. Specialized tenant screening companies pull court records and report eviction filings to future landlords, and many landlords treat any eviction filing as a red flag regardless of outcome.4Consumer Financial Protection Bureau. How Long Can Information, Like Eviction Actions and Lawsuits, Stay on My Tenant Screening Record?
The eviction itself doesn’t appear on a credit report, because the major credit bureaus don’t report eviction filings directly. But if the landlord obtains a money judgment for unpaid rent and that debt goes to collections, the collection account can appear on the tenant’s credit report for up to seven years from the date the delinquency began.5Office of the Law Revision Counsel. 15 USC 1681c – Requirements Relating to Information Contained in Consumer Reports Eviction court records can stay on tenant screening reports for up to seven years as well, and a debt discharged through bankruptcy may remain for ten years.4Consumer Financial Protection Bureau. How Long Can Information, Like Eviction Actions and Lawsuits, Stay on My Tenant Screening Record?
Around 15 states as of 2025 have passed laws allowing tenants to seal or expunge eviction records under certain circumstances, such as when the case was dismissed or the tenant prevailed. Sealing removes the record from public view; expungement erases it. Tenants in jurisdictions without these protections may need to negotiate with the landlord to have the case voluntarily dismissed as part of a settlement, since a dismissal often looks better on a screening report than a judgment.
Protections for Military Servicemembers
Active-duty military members and their dependents have additional protections under federal law. The Servicemembers Civil Relief Act prohibits a landlord from evicting a servicemember from a primary residence without first obtaining a court order, provided the monthly rent falls below a threshold that is adjusted annually for housing-cost inflation.6Office of the Law Revision Counsel. 50 USC 3951 – Evictions and Distress
When a covered servicemember requests it, the court has to stay the eviction proceedings for at least 90 days if the member’s ability to pay rent has been materially affected by military service. The court can also adjust the lease obligation to balance the interests of both parties. Violating these protections is a federal misdemeanor carrying up to one year in jail.6Office of the Law Revision Counsel. 50 USC 3951 – Evictions and Distress