It is unlawful for a landlord to harass a tenant. Illegal Harassment can take many forms. Tenant harassment includes: removing /taking away services (such as cutting off heat or hot water), refusing to make necessary repairs, threatening tenants with eviction or harm, or attempting to force a tenant to vacate their apartment.
San Francisco Rent Ordinance Section 37.10B prohibits landlords from taking away or failing to provide certain basic services from tenants. This includes interrupting, terminating or failing to provide housing services required by contract or by State, County or local housing, health or safety laws, among others.
Tenants who have been subjected to harassment may have a basis to sue their landlord for damages.