California Civil Code section 1942.5 prohibits residential landlords from retaliating against tenants who complain about unsafe or unhealthy conditions, report code violations, organize with other tenants, or otherwise exercise their legal rights. The core mechanism is a timing rule: if the landlord raises rent, cuts services, serves a notice to quit, or files an eviction within 180 days of a tenant’s protected activity, the law presumes the landlord acted in retaliation. That presumption is a defense to eviction and a basis for the tenant to sue for damages.
Protected Tenant Activities
The 180-day protection is triggered by any of the following good-faith actions:
- Complaining to the landlord, orally or in writing, about habitability problems such as broken plumbing, mold, pest infestations, or a suspected bed bug infestation.
- Using the repair-and-deduct remedy under Civil Code 1942.
- Filing a written complaint, or an oral complaint recorded in writing, with a code enforcement office, health department, or other appropriate agency for the purpose of getting a habitability problem fixed.
- Having an inspection take place or a citation issued as a result of that complaint, even if the landlord didn’t know the tenant reported it.
- Starting a lawsuit or arbitration involving habitability.
- Obtaining a court judgment or arbitration award on a habitability dispute.
The 180 days run from whichever triggering event happened most recently.1California Legislative Information. California Code CIV 1942.5
What the Landlord Cannot Do
Once a tenant engages in a protected activity, the statute forbids the landlord from doing any of the following as payback:
- Raising the rent.
- Reducing housing services the tenant previously had, such as parking, laundry access, or landlord-paid utilities.
- Serving any form of notice to quit or move out.
- Filing an eviction lawsuit.
- Taking informal steps designed to pressure the tenant into leaving.
- Threatening to report the tenant, or anyone the landlord knows is associated with the tenant, to immigration authorities. The statute names this explicitly.1California Legislative Information. California Code CIV 1942.5
The immigration-threat prohibition applies both to retaliation for habitability activity and to retaliation for tenant organizing.
How the 180-Day Presumption Works
Within 180 days of a protected activity, the tenant does not have to prove the landlord’s motive. The court presumes retaliation, and the landlord must come forward with evidence of a legitimate, non-retaliatory reason for the action.1California Legislative Information. California Code CIV 1942.5
The presumption is rebuttable, so the landlord gets a chance to explain. Even so, a landlord who raises rent or files for eviction three weeks after a code enforcement call starts the case on the defensive.
Two prerequisites matter. The tenant must not be in default on rent to invoke the presumption under subdivision (a). And a tenant can rely on that presumption only once in any 12-month period. Filing successive complaints does not reset the clock.1California Legislative Information. California Code CIV 1942.5
Organizing and Exercising Legal Rights
Subdivision (d) works differently. It makes it unlawful for a landlord to retaliate against a tenant who has lawfully organized with other tenants, participated in a tenant association or tenants’ rights organization, or peacefully exercised any right under the law.2California Legislative Information. California Civil Code 1942.5
There is no 180-day window here and no automatic presumption. The trade-off is that the tenant carries the burden of showing the landlord’s action was actually retaliatory. If the landlord raises rent eight months after a tenant helped start an association, the tenant needs evidence connecting the two: hostile communications, selective enforcement, or testimony from other tenants about what the landlord said.
How a Landlord Rebuts the Claim
A landlord can defeat a retaliation claim, even inside the 180-day window, by showing a legitimate, good-faith reason for the action. The statute requires the landlord to state the grounds in the termination notice, rent increase, or related filing. If the tenant disputes those grounds, the landlord has to prove them at trial.1California Legislative Information. California Code CIV 1942.5
Reasons landlords commonly raise include unpaid rent, significant property damage, a substantial breach of a specific lease term, or an owner move-in or major renovation where local rent control or just-cause rules permit it. The statute preserves the landlord’s general right to take lawful action for a legitimate purpose.2California Legislative Information. California Civil Code 1942.5 The contested question is usually whether the stated reason is real or pretext. A lease clause that went unenforced for years and suddenly matters the week after a code complaint is a hard sell.
What the Tenant Can Recover
Retaliation is a complete defense to eviction. If the court finds the eviction retaliatory, the landlord cannot recover possession.
A tenant can also sue for damages. The statute allows:
- Actual damages, meaning out-of-pocket losses like moving expenses, the difference between the old rent and a comparable replacement unit, or temporary housing costs.
- Punitive damages of between $100 and $2,000 for each retaliatory act, where the conduct involved fraud, oppression, or malice.
- Reasonable attorney’s fees to the prevailing party, if either side requests them at the start of the case.1California Legislative Information. California Code CIV 1942.5
The attorney’s fees provision cuts both ways. A winning tenant can recover legal costs, which makes it easier to find counsel. A losing tenant could be ordered to pay the landlord’s fees, so the claim needs solid evidence behind it. These remedies stack on top of anything else available under California law or the common law retaliatory eviction doctrine.3Justia. CACI No. 4321 – Affirmative Defense – Retaliatory Eviction
Limits Built Into the Statute
Three limits shape when the statutory presumption is actually available:
- The 180-day presumption under subdivision (a) can be used only once in a 12-month period.
- It applies only if the tenant is current on rent. A tenant in default loses the automatic presumption, though subdivision (d) and common law may still apply.
- The protected activity has to be in good faith. A complaint fabricated to manufacture a retaliation shield does not qualify.
One protection is unconditional. Any lease clause purporting to waive a tenant’s rights under section 1942.5 is void. A landlord cannot contract around these rules, and lease language that tries to is unenforceable.2California Legislative Information. California Civil Code 1942.5
The Common Law Defense Alongside the Statute
California also recognizes a retaliatory eviction defense at common law, running parallel to section 1942.5. The California Supreme Court established that doctrine in Barela v. Superior Court (1981), and the statute did not eliminate it.3Justia. CACI No. 4321 – Affirmative Defense – Retaliatory Eviction
That matters when a tenant’s situation falls outside the statute’s framework. California courts have suggested the common law defense may not carry the same time limits or the once-per-year cap. A tenant facing retaliation more than 180 days after a complaint, or a second retaliation episode in the same year, should ask an attorney whether the common law doctrine reaches the situation the statute doesn’t.