US-CaliforniaCan my landlord retaliate against me for reporting code violations?
No, California law prohibits landlords from retaliating against tenants for reporting code violations, and such retaliation is illegal within 180 days of the complaint.
What the Law Says
California law explicitly protects tenants who report unsafe or illegal conditions to government authorities. It presumes retaliation if certain adverse actions occur shortly after a complaint.
Under California Civil Code § 1942.5, it is unlawful for a landlord to increase rent, decrease services, file an eviction lawsuit, threaten eviction, or otherwise harass a tenant because the tenant has reported housing code violations to a public agency.
The law creates a rebuttable presumption of retaliation if the landlord takes adverse action within 180 days of the tenant’s complaint — meaning the court will assume retaliation occurred unless the landlord proves a legitimate, non-retaliatory reason.
If retaliation is found, the tenant may recover actual damages, statutory penalties of at least $2,000, and in some cases up to three times the amount of rent due under the lease (Civil Code § 1942.5(d)).
Statutory TextIt shall be unlawful for any lessor… to increase rent, decrease services, cause the lessee to quit involuntarily, bring an action to recover possession, or threaten to do any of these things, because the lessee has given notice… of a violation of the building, housing, or health laws.
— Civil Code § 1942.5(a) — Retaliatory acts prohibited
Statutory TextThere shall be a rebuttable presumption affecting the burden of producing evidence that the lessor’s conduct… was in retaliation for the lessee’s exercise of rights under this section if the conduct occurs within 180 days after the lessee has given notice…
— Civil Code § 1942.5(c) — Presumption of retaliation
Statutory TextA lessee who proves a violation… shall recover… not less than two thousand dollars ($2,000)… and may recover… up to three times the amount of rent due under the lease.
— Civil Code § 1942.5(d) — Remedies
What Courts Have Said
California courts have consistently enforced the anti-retaliation protections in Civil Code § 1942.5, emphasizing the importance of tenant safety and transparency in housing enforcement.
Established that tenants have standing to sue for retaliatory eviction and affirmed the public policy behind protecting complaints about substandard housing.
Held that the right to complain about habitability issues is fundamental and that retaliatory evictions violate public policy, reinforcing the protections in § 1942.5.
What to Do
Document everything: save copies of your complaint (e.g., to Code Enforcement or Health Department), dates, and any communication with your landlord.
If your landlord takes adverse action (e.g., rent increase, eviction notice, service reduction) within 180 days, consult a tenant rights organization or attorney immediately.
File a response in court if served with an eviction lawsuit — raise retaliation as an affirmative defense using § 1942.5.
You may also file a civil lawsuit seeking damages, injunctive relief, and statutory penalties.
Contact your local rent board (if in a rent-controlled city) or the California Department of Consumer Affairs for free resources.
Sources
Same Question, Other Jurisdictions
Not legal advice. This article is general information based on publicly available sources, written for educational purposes. Laws change and individual situations vary. Consult a licensed attorney in your jurisdiction before acting on anything you read here. Last reviewed: 2026-06-08.
UK