San Francisco · Renting & eviction
Harassment and lockouts in San Francisco
San Francisco's own rules on harassment and lockouts, with the code text for every value, and the state law underneath.
Each rule below links to the section of the San Francisco Administrative Code it was read from, with the code text one click away (checked October 2026). General information, not legal advice.
What San Francisco's code says
| Penalties |
|
|---|---|
| Tenant lawsuits |
|
The California rule underneath
CA state law Underneath, California law still applies. Lockouts and self-help eviction banned: A landlord may not change locks, remove doors or windows, or remove the tenant's belongings to force a tenant out (Civ. Code § 789.3(b)). Utility shutoffs banned: A landlord may not cut off water, heat, electricity, gas or other utilities to force a tenant out (Civ. Code § 789.3(a)). Tenant harassment and lockouts in California — the full state rule →
Who this affects
General information, not legal advice.
Ask about a specific San Francisco property
Ask GoCodebook how San Francisco's harassment and lockouts rules apply to your situation and get an answer that cites the section.
Ask your question