Unlawful Detainer Statute: Notice, Defenses, and Writ of Possession

An unlawful detainer is the lawsuit a landlord files to evict a tenant and recover possession of a rental property through the courts. It’s a summary proceeding, which means the timeline from filing to judgment is compressed compared to ordinary civil cases, often finishing in weeks rather than months. Every state has some version of the process, though the deadlines, terminology, and specific requirements vary. Getting any step wrong can reset the entire case, which is why the grounds, notice rules, and filing mechanics matter whether you are the landlord bringing the action or the tenant trying to respond.

When a Landlord Can File

A landlord cannot file simply because the relationship has gone bad. The law requires a specific legal basis, and the complaint has to identify which one applies. The usual grounds fall into a handful of categories:

  • Nonpayment of rent, by far the most common trigger.
  • Lease violations, such as unauthorized pets, subletting without permission, or significant property damage.
  • Holdover tenancy, where a fixed-term lease has expired, the landlord has declined to renew, and the tenant refuses to leave.
  • No-fault termination of a month-to-month tenancy, such as taking the unit off the rental market or moving in a family member. Many jurisdictions with rent stabilization laws restrict or prohibit these.
  • Post-foreclosure occupancy, where the previous owner or their tenant remains after a trustee’s deed has transferred ownership.
  • Unauthorized occupants with no lease or legal right to be there.

In every case the landlord has to prove the occupant’s possession has become unlawful, and that proof begins long before anyone sees a courtroom.

The Notice That Has to Come First

Before filing anything, the landlord must serve the tenant with a written notice giving them a chance to fix the problem or move out. The type of notice and the number of days depend on the reason for eviction and the state.

For nonpayment, most states require a “pay or quit” notice giving the tenant a set number of days to pay the full amount owed or vacate. That window runs as short as three days in some states and fourteen or more in others. For lease violations that can be corrected, a “cure or quit” notice identifies the specific breach and gives the tenant time to fix it. For a no-fault end to a month-to-month tenancy, longer notice periods apply, commonly 30 or 60 days depending on how long the tenant has lived there.

The notice itself has to be precise. It needs the property address, the tenant’s name, a description of the problem, the exact amount owed where rent is demanded, and the deadline for compliance. Sloppy notices are one of the easiest ways for a landlord to lose before the case begins. Courts routinely dismiss complaints because the notice overstated the rent, omitted required information, or was delivered improperly.

Federal Notice Rules Under the CARES Act

For rental properties with a federally backed mortgage, a separate federal rule layers on top of state law. The CARES Act requires landlords of covered dwellings to give at least 30 days’ notice before requiring a tenant to vacate for nonpayment of rent. Covered dwellings include properties with mortgages insured or guaranteed by the FHA, VA, or USDA, as well as those owned or securitized by Fannie Mae or Freddie Mac. This federal floor applies regardless of whether the state’s notice period is shorter.1Office of the Law Revision Counsel. 15 USC 9058 – Moratorium on Eviction Filings A 2026 Federal Register notice confirmed the requirement still applies to properties with federally backed multifamily mortgage loans.2Federal Register. Rescinding 30-Day Notification Requirements Related to Eviction Based on Nonpayment of Rent in Multi-Family Housing Direct Properties

Many landlords of single-family rentals have no idea their property qualifies, particularly when the mortgage was sold to Fannie Mae or Freddie Mac on the secondary market. Filing without providing the required 30-day notice can lead to dismissal.

Self-Help Evictions Are Illegal

Changing the locks, shutting off utilities, removing a tenant’s belongings, or blocking access to the unit are forms of “self-help eviction,” and virtually every state prohibits them. It does not matter how far behind on rent the tenant is or how clearly the lease has been violated. The only legal path to removing someone from a rental runs through the court system and ends with a law enforcement officer executing a court order.

Landlords who skip that path face real consequences. Depending on the jurisdiction, a tenant subjected to a lockout or utility shutoff can sue for damages, recover statutory penalties, and in some states obtain a court order allowing them back into the unit. A self-help eviction often delays the legal one by weeks or months, because the landlord ends up defending against the tenant’s claims instead of pursuing their own.

Filing the Complaint and Serving the Tenant

Once the notice period expires without the tenant paying, curing, or moving out, the landlord can file the court action. The unlawful detainer complaint and summons are available from the local courthouse or the state judiciary’s website. The complaint has to identify all parties, describe the property, state the legal basis for eviction, and attach or reference the notice that was served, including when and how it was delivered.

The complaint also states what the landlord is asking for financially. At a minimum this includes possession. Most landlords also seek unpaid rent and holdover damages, usually calculated by dividing the monthly rent by 30 for a daily rate and multiplying by each day past the notice deadline. If the lease contains an attorney fee provision, the complaint should request fees as well. In most states that provision runs both directions, so a tenant who prevails can recover fees too.

After the clerk stamps the complaint and issues a summons, those documents must be delivered to the tenant. The landlord cannot do this personally. Service has to be performed by someone over 18 who is not a party to the case, whether a professional process server, the sheriff’s office, or another adult.

Personal service, handing the papers directly to the tenant, is preferred. If the tenant cannot be found after reasonable attempts, most states allow substituted service: leaving the documents with a responsible adult at the tenant’s home or workplace and mailing a copy. Some jurisdictions also permit posting on the door and mailing, sometimes called “nail and mail,” usually only after other methods fail. Once service is complete, the server files a proof of service with the court, which starts the tenant’s response clock.

The Tenant’s Response

After being served, the tenant has a limited window to file a written answer. The compressed timeline is what sets unlawful detainer apart. A standard civil defendant might get 30 days to respond; an eviction defendant typically has five to seven court days, depending on state and method of service.

Default Judgment

If the tenant does not answer by the deadline, the landlord can ask the court for a default judgment. The judge can then decide without a trial, usually awarding possession and the back rent claimed in the complaint. This is where many evictions end. Ignoring the summons is the single worst decision a tenant can make, because it forfeits every defense.

Trial

If the tenant answers, the case is set for trial, usually within a few weeks. Unlawful detainer trials are typically bench trials, meaning a judge decides rather than a jury. Both sides present testimony and evidence: the lease, the notice, payment records, photographs, and communications. The landlord presents first, then the tenant. The judge enters a judgment granting possession or ruling for the tenant. Many cases settle before trial, often through a negotiated move-out agreement that gives the tenant more time in exchange for dropping defenses.

Defenses That Can Stop or Delay an Eviction

Tenants are not without options. Several defenses can defeat an unlawful detainer, and landlords should understand them before filing because a weak case can backfire.

Defective Notice

The most direct defense attacks the notice. If it demanded more rent than was actually owed, omitted required information, was served improperly, or gave too little time, the court will dismiss the case. The landlord can fix the error and start over, but that means a new notice and another waiting period.

Uninhabitable Conditions

In most states, landlords have an implied duty to keep residential rental property safe and livable. When a landlord fails to maintain basic habitability, including working plumbing, heating, weatherproofing, electrical systems, and sanitary conditions, the tenant may raise that failure as a defense to nonpayment. A dripping faucet will not defeat an eviction. A broken furnace in January might. The defense fails if the tenant caused the condition or blocked repair attempts.

Retaliatory Eviction

If a tenant complained to a government agency about code violations, requested legally required repairs, or participated in a tenants’ organization, and the landlord then moved to evict, the tenant can argue retaliation. A majority of states recognize this defense, and some presume retaliation when the eviction follows closely after a protected activity. A handful of states, including Idaho, Indiana, Missouri, North Dakota, Oklahoma, and Wyoming, provide no statutory protection.

Discrimination

The federal Fair Housing Act prohibits evictions motivated by a tenant’s race, color, religion, sex, national origin, familial status, or disability.3U.S. Department of Justice. The Fair Housing Act Many state and local laws add further protected categories. A tenant who can show the eviction was pretextual, targeting them for a protected characteristic rather than a genuine lease violation, has a powerful defense and potentially a federal lawsuit.

The Writ of Possession

Winning a judgment does not let the landlord walk in and change the locks that afternoon. The court issues a judgment for possession, but the landlord needs a separate order, typically called a writ of possession or writ of restitution, to physically remove the tenant. The landlord applies for the writ after judgment, and the court issues it once any mandatory waiting period passes.

A sheriff, marshal, or constable then serves the writ, usually by posting it on the door with a final deadline to leave, often 24 to 72 hours. If the tenant still has not vacated when that deadline expires, the officer returns and supervises the removal. The time from judgment to lock-out varies widely. In smaller jurisdictions it might take a week. In high-volume metropolitan courts, sheriff scheduling can stretch the wait to several weeks.

Landlords cannot touch the tenant’s belongings during this process. Only law enforcement executing the writ has authority to remove an occupant. After removal, most states require the landlord to store the tenant’s abandoned personal property for a set period, commonly 10 to 30 days, and provide written notice about how to reclaim it. Disposing of belongings too quickly can expose the landlord to liability for the value of the property.

How an Eviction Follows a Tenant

An unlawful detainer case creates a court record that can follow a tenant for years. Under the Fair Credit Reporting Act, a civil judgment can appear on a tenant screening report for seven years from the date of entry, or until the statute of limitations expires, whichever is longer.4Office of the Law Revision Counsel. 15 USC 1681c – Requirements Relating to Information Contained in Consumer Reports The filing itself, even if the landlord ultimately lost or the case was dismissed, can also appear on screening reports for up to seven years.5Consumer Financial Protection Bureau. How Long Can Information, Like Eviction Actions and Lawsuits, Stay on My Tenant Screening Record

Even tenants who successfully defend against an eviction can find it harder to rent later, because many screening companies report the filing regardless of outcome. A growing number of states now allow tenants to seal or expunge eviction records in certain circumstances, such as when the tenant prevailed, the case was dismissed, or the parties settled. As of recent counts, roughly a dozen states had enacted sealing or expungement provisions, though the specifics vary. Tenants who win or settle should check whether their state offers a path to remove the record.