The Journal4 min read
Fighting an Eviction in California: Tenant Defenses Explained
How California's unlawful detainer process works, the defenses tenants can raise, and the tight deadlines that decide whether you keep your home.

California evictions proceed through an unlawful detainer lawsuit under Code of Civil Procedure § 1161. A landlord must first serve a written notice, then file a summons and complaint. A tenant generally has five days to file a written response raising defenses such as improper notice, retaliation, or uninhabitable conditions before a court can order removal.
An eviction is a lawsuit, not a lockout
In California a landlord cannot legally remove you by changing the locks, shutting off utilities, or hauling out your belongings. Those "self-help" tactics are barred by Civ. Code § 789.3. The only lawful path is a court case called an unlawful detainer, governed by Code Civ. Proc. § 1161.
That matters because a lawsuit gives you procedural rights: notice, a chance to file a written answer, and a hearing. Only a sheriff acting on a court-issued writ of possession may physically remove a tenant. Until that point, you remain legally entitled to the unit even if a notice has expired.
The notice comes first — and its form matters
Before filing, the landlord must serve a written notice, and the type depends on the reason:
| Notice | Typical use | Statute |
|---|---|---|
| 3-day notice to pay rent or quit | Unpaid rent | CCP § 1161(2) |
| 3-day notice to perform or quit | Lease violation | CCP § 1161(3) |
| 30- or 60-day notice | Ending certain tenancies | CCP § 1946.1 |
Notice defects are among the most common reasons eviction cases fail. A pay-or-quit notice that overstates the rent owed, miscounts the days, omits the landlord's contact and payment details, or is served improperly can be legally invalid. Because the notice is the foundation of the lawsuit, a defective notice can require the landlord to start over. Many tenancies are also covered by the statewide just-cause and rent-cap rules in Civ. Code § 1946.2, which require a stated reason to terminate.
The deadline that decides everything
Once the landlord files, you are served with a summons and complaint. From service you generally have five days to file a written response, per CCP § 1167. Weekends and court holidays are excluded from that count.
Missing this deadline is the single most damaging mistake a tenant makes. If you do not respond, the landlord can request a default judgment and win without a hearing on the merits — regardless of how strong your defenses were. Filing a timely Answer (or a motion challenging the complaint) preserves your right to contest the case and forces the landlord to prove it in front of a judge.
Unlawful detainer cases are legally "summary" proceedings, meaning they move fast. A trial can be set within roughly three weeks of a request. Acting immediately after being served is essential.
Defenses California tenants commonly raise
A written Answer lets you assert affirmative defenses. Depending on the facts, these may include:
- Defective or improperly served notice — wrong amount, wrong time period, or improper delivery.
- The rent was paid or tendered, or the landlord refused a valid payment.
- Breach of the warranty of habitability — serious uninhabitable conditions under Civ. Code § 1941.1, which can reduce or offset rent owed.
- Retaliation for complaining about conditions or exercising legal rights, addressed in Civ. Code § 1942.5.
- Discrimination under fair housing law.
- No just cause where Civ. Code § 1946.2 or a local ordinance applies.
Whether any defense fits depends entirely on the facts and documents in a given case. Cases of this kind generally turn on the notice, the lease, payment records, and evidence of the unit's condition.
Getting help and finding counsel
Eviction defense is time-sensitive and document-heavy. Local legal aid organizations and county self-help centers assist tenants, and some courts have on-site help desks. Keep every notice, text, email, receipt, and photo of conditions — these become your evidence.
If you want to consult a private attorney, you can review landlord–tenant lawyers in the registry or find counsel. When you make contact, bring the summons, complaint, all notices, your lease, and your rent-payment history so the timeline and deadlines can be assessed quickly. For a checklist of what a first consultation involves, see what to bring to your first meeting.
Frequently asked questions
How many days do I have to respond to an eviction lawsuit in California?
After being served with the summons and complaint, a tenant generally has five days to file a written response under Code of Civil Procedure § 1167, excluding weekends and court holidays. Missing this deadline can let the landlord win a default judgment without any hearing on your defenses.
Can my landlord evict me without going to court?
No. California requires a court unlawful detainer lawsuit, and only a sheriff enforcing a writ of possession may remove a tenant. Lockouts, utility shutoffs, and removing belongings are illegal self-help evictions barred by Civil Code § 789.3, which can expose the landlord to damages.
Does an eviction notice have to be in writing?
Yes. Under Code of Civil Procedure § 1161, the landlord must serve a valid written notice before filing suit. The notice type and content depend on the reason, and defects such as an incorrect rent amount or improper service can make the notice legally invalid.
Can I fight an eviction if my apartment has serious repair problems?
Possibly. Serious uninhabitable conditions may support a breach-of-habitability defense under Civil Code § 1941.1 that can reduce or offset rent owed. Whether it applies depends on the conditions, notice to the landlord, and evidence, so documentation like photos and repair requests is important.
Legal information, not legal advice.
Legal information, not legal advice. This brief provides general legal and professional information; it is not a substitute for counsel on a specific situation, and reading it creates no attorney–client relationship.