The law behind anti-retaliation protection
Yes. California law specifically prohibits landlords from retaliating against tenants who exercise their legal rights, and a landlord who does so can face real consequences.
The main protection is found in Civil Code Section 1942.5. It bars a landlord from retaliating — through actions like raising rent, reducing services, or trying to evict a tenant — because the tenant lawfully exercised a protected right, such as complaining about habitability, reporting problems to a government agency, or using a legal remedy. Some cities add their own, sometimes stronger, anti-retaliation rules on top of this.
When a landlord violates the retaliation law, tenants may be entitled to remedies that can include damages, penalties for willful violations, and in many cases attorney's fees. Retaliation can also be raised as a defense if a landlord tries to evict a tenant for a retaliatory reason.
Because the law protects the very act of standing up for your rights, it is a powerful tool. If you believe your landlord punished you for exercising a right, a free, confidential review can explain how these protections may apply to your situation.
This is general information about California tenant rights, not legal advice. Every situation is different.