A landlord must make repairs and do whatever is reasonably necessary to keep the house or apartment in fit and habitable condition, and obey local building-related codes that materially affect health and safety. If a landlord fails to make repairs, the tenant cannot legally withhold rent, but can follow the process to deposit their rent with the court. The tenant can ask the court to order the landlord to make the repairs and to award the tenant money damages, as well.