You filed the complaint, served the tenant, and may have been counting the days until you could ask for a default. Then a copy of the tenant's answer arrived in the mail. Now you are trying to work out what that paper changes, how much longer the unit stays occupied while no rent comes in, and what the tenant can argue. This page walks through each stage of a contested unlawful detainer from the owner's side, from the answer to the writ.

What a Filed Answer Changes About the Case

An unlawful detainer is the court case a California owner files to recover possession of real property from a tenant or occupant. An answer is the tenant's written response to the complaint. It admits or denies what the complaint says and raises the tenant's defenses, which puts the case in dispute. The tenant files the answer with the court and sends a copy to the owner, or to the owner's attorney. The California Courts self-help page, What happens if your tenant files a response, says the tenant must send you a copy. If one does not arrive, that page says you can check at the courthouse to see whether one was filed.

A default happens when a defendant does not respond by the deadline. A default judgment is the judgment the court can then enter without a trial. Once an answer is on file, that route is closed. The case becomes a contested case, which means the owner must prove the claim at trial.

Timing starts with Code of Civil Procedure section 1167. After the complaint is served, the tenant has 10 days to respond, "excluding Saturdays and Sundays and other judicial holidays." The tenant gets an additional five court days if service was completed by mail or in person through the Secretary of State's address confidentiality program. A tenant may also respond by challenging the complaint instead of answering it. Under Code of Civil Procedure section 1170, the tenant may "appear and answer, demur, or move to strike any portion of the complaint."

How the Court Sets the Trial Date

The trial date does not set itself. The owner asks for it. The court's self-help page says that when the tenant has filed an answer, the owner files a Request to Set Case for Trial on form UD-150 with the court clerk, mails a copy to the tenant, and has the server complete the proof of service on the back. That page says the clerk then mails a notice with the trial date. The page also says the tenant may file a counter-request, for example to ask for a jury trial, and that either side has the right to request one.

Unlawful detainer cases move ahead of other civil cases. On the Judicial Council's UD-150 Request/Counter-Request to Set Case for Trial (New January 1, 2005), the plaintiff states that the case "is entitled to legal preference." The form's notice says that if a jury is requested, $150 must be deposited with the court 5 days before trial.

Code of Civil Procedure section 1170.5(a) says trial "shall be held not later than the 20th day following the date that the request to set the time of the trial is made." The court may extend that period if all parties agree. Any other extension requires a hearing. If trial is not held in time, the court may order the tenant to pay into court, or into a court-designated escrow, the amount the owner is losing, but only if it finds a reasonable probability that the owner will prevail. If the tenant misses an ordered payment, trial must be held within 15 days of the date the payment was due.

The contested path takes longer than a default because it ends in a trial. The unit may stay occupied during that time without rent, unless the court orders payments under section 1170.5. The goal of the trial is a judgment for possession, which is the court's decision that the owner is entitled to have the property back.

For an owner waiting to recover the property, the trial date is the point the contested process is working toward.

Defenses the Tenant May Raise in the Answer

The Judicial Council's UD-105 Answer—Unlawful Detainer (Rev. January 1, 2026) gives an owner a preview of the issues a contested case can raise. The form lists defenses as checkboxes, including:

  • For nonpayment cases only: the tenant made needed repairs and deducted the cost from rent; the tenant offered the rent before the notice expired and the owner refused it; or the rent demanded came due more than one year ago.
  • Changes to the notice: the owner waived, changed, or canceled the notice to quit.
  • Accepting rent: the owner accepted rent covering a period after the notice expired.
  • Retaliation or discrimination: the notice or complaint was served to retaliate against the tenant, or it arbitrarily discriminates against the tenant.
  • Local ordinances: the demand for possession violates a local rent control or eviction control ordinance.
  • Statewide rules: the case is subject to the Tenant Protection Act and does not comply with it.

The form lists more defenses than these, including defenses based on rental assistance programs.

Beyond the checkboxes, the notice itself is tested. Its contents, its service, and the ground it states are measured against what the statute requires. Take a three-day notice to pay rent or quit under Code of Civil Procedure section 1161(2). It must state the amount due and the name, telephone number, and address of the person to whom the rent is paid, along with the other payment details that subdivision lists. Whether the owner prevails depends on whether the notice and its service meet those requirements. An answer may also bring up occupants who were never named in the case, which is the subject of the next section. For more on how a trial tests these issues, see the page on a contested eviction.

Knowing what the answer form allows a tenant to raise helps an owner understand what the trial will actually test.

When an Unnamed Occupant Claims a Right to Possession

A prejudgment claim of right to possession is a claim by someone living in the property who is not named in the case. That person asserts a right to possession that existed before the case was filed. It matters because a judgment for possession resolves rights between the parties to the case. An adult occupant the owner did not know about, such as a subtenant or a roommate, can raise a question about whether the judgment and the writ reach that person.

If such a claim is made, the claimant can become part of the case. The trial may then decide that person's right to stay as well as the tenant's. Whether an unnamed occupant can make this claim, and whether a writ can be enforced against occupants who were not named, depends on how the summons and complaint were served and on the rules for these claims. Those facts matter early. The owner's goal is a judgment that covers everyone in possession, so that possession comes back in full rather than with someone still living there.

For an owner, a judgment that covers everyone in possession is what makes enforcement of the writ straightforward.

What Happens at Trial and After a Judgment for Possession

At trial, both sides present evidence and argument. A judge, or a jury if one was requested, then decides whether the owner is entitled to possession. Under Code of Civil Procedure section 1174(a), a finding for the owner means judgment "shall be entered for the possession of the premises." The court may instead find for the tenant.

In a case based on nonpayment or another lease breach, section 1174(a) adds a condition. The judgment declares the lease forfeited only if the notice stated the landlord's election to declare the forfeiture. Under section 1174(b), the court also assesses the owner's damages and, in a nonpayment case, finds the rent due. If malice is shown, it may award statutory damages of up to $600 in addition to actual damages.

A writ of possession is the court order that authorizes enforcement of the judgment for possession. A levying officer is the sheriff or marshal who carries out that order. Under Code of Civil Procedure section 1170.5(a), when the owner prevails after a contested trial, a writ of execution "shall be issued immediately by the court upon the request of the plaintiff."

Code of Civil Procedure section 1174(c) can delay the writ in a nonpayment case. It applies when the lease has not expired by its terms and the notice did not state an election to declare forfeiture. In that situation, the court may order that no writ issue until five days after entry of judgment. The court must make that order if the lease is in writing, is for a term of more than one year, and has no forfeiture clause. During those five days, the tenant, a subtenant, a mortgagee of the term, or any other party interested in the lease continuing may pay into court the rent found due with interest, the damages, and costs. That payment satisfies the judgment and restores the tenant. If no payment is made, the judgment may be enforced in full, including for possession. In all other cases, section 1174(c) says the judgment "may be enforced immediately."

Possession comes back to the owner through the judgment for possession and the levying officer's enforcement of the writ. The steps after judgment are covered on the page about the writ of possession and lockout.

Documents That Drive a Contested Case

A contested case turns on paper. The core documents are:

  • The original notice
  • The proof of service showing how and when the notice was served
  • The lease or rental agreement
  • The rent ledger
  • Written communications with the tenant

Each one is checked against the statute that applies to the ground relied on. For a nonpayment of rent eviction, that statute is Code of Civil Procedure section 1161(2).

The ground also controls which notice applies. Under Code of Civil Procedure section 1161(4), a three-day notice to quit, with no chance to cure, applies when the tenant assigns or sublets, or commits waste, contrary to the lease; maintains, commits, or permits a nuisance; or uses the premises for an unlawful purpose. For other lease breaches, section 1161(3) generally requires a notice that offers the tenant the chance to cure, meaning to fix the breach. The exception is a breach that cannot afterward be performed.

For residential property, Civil Code section 1946.2 can add requirements. Once a tenant has continuously and lawfully occupied the property for 12 months, the owner may terminate only for just cause, and the notice must state that cause. Different rules apply when additional adult tenants are added before an existing tenant reaches 24 months.

The statute also exempts certain properties. The list includes transient hotel occupancy, housing built under a certificate of occupancy issued within the previous 15 years, and several other categories. One exemption covers property that can be sold separately from any other dwelling unit, such as a single-family home or a condominium. That exemption holds only if the owner is not a real estate investment trust, a corporation, or a limited liability company with at least one corporate member, and only if the tenants were given the written exemption notice that section 1946.2 requires.

Two more residential rules apply under section 1946.2. A curable violation requires a notice to cure before a notice to quit. A no-fault termination requires relocation assistance or a rent waiver, and strict compliance with that requirement is a condition of a valid notice. A city's own rules may add further requirements.

Section 1946.2 governs residential real property. A commercial tenancy follows its own path, described on the commercial eviction page. Lease drafting, rent increases, security deposits, habitability compliance, and property management are separate matters and outside the scope of this page.

Private consultation

You Don’t Have to Work This Out Alone

If you’re dealing with a tenant who has answered the unlawful detainer, we’re here to talk it through.

Every property problem has its own facts. When the rent stops coming in or a tenant won’t leave, it can weigh on you. Call or send us a message to request a consultation with our eviction attorney, and we’ll listen and help you understand the options in your situation.

California Landlord Rights Group

  • 100% Confidential

What happens next

  1. Call or send a messageWhichever feels easier.
  2. Tell us what’s going onIn confidence, in your own words.
  3. Talk through your optionsThen decide, in your own time, what comes next.

Frequently Asked Questions

How many days does a tenant have to respond to an unlawful detainer in California?

Under Code of Civil Procedure section 1167, the tenant has 10 days, excluding Saturdays, Sundays, and judicial holidays, after the complaint is served. The tenant gets five additional court days if service was completed by mail or through the address confidentiality program, as described in the first section above.

What happens after a tenant files an answer to an unlawful detainer in California?

The case becomes contested, and no default judgment is available. The owner files a request to set the case for trial, and under Code of Civil Procedure section 1170.5(a), trial must be held within the period that section sets, subject to the extensions it allows.

Can the landlord still win after the tenant answers?

Yes. An answer moves the case to trial; it does not end it. At trial, the court decides whether the owner is entitled to possession. That depends on whether the notice, its service, and the stated ground meet the statute's requirements and on the defenses raised.

What defenses can a tenant raise in an answer to an unlawful detainer?

The UD-105 answer form lists defenses an owner can expect to see. They include a waived or canceled notice, acceptance of rent after the notice expired, repair deductions in nonpayment cases, retaliation, discrimination, and noncompliance with a local ordinance or the Tenant Protection Act. The notice and its service are also tested against the statute.

What is a prejudgment claim of right to possession?

It is a claim by an occupant who is not named in the case, asserting a right to possession that existed before the case was filed. If one is made, that person can become part of the case. It bears on whether the judgment covers everyone living in the property.

How long does a contested unlawful detainer take in California?

No fixed length applies. A contested case goes to trial, so it takes longer than a default, and rent can go unpaid during that time. Unlawful detainer cases have calendar preference, and trial timing follows Code of Civil Procedure section 1170.5.

What is a writ of possession and how does it work?

A writ of possession is the court order that authorizes the sheriff or marshal, called the levying officer, to enforce a judgment for possession. After a contested trial the owner wins, the court issues the writ on the owner's request. In some nonpayment cases, Code of Civil Procedure section 1174(c) can delay it for five days.