Cal. Civ. Code § 55.1-1241
Landlord's noncompliance as defense to action for possession for nonpayment of rent.
Operative Text
A. In an action for possession based upon nonpayment of rent or in an action for rent by a landlord when the tenant is in possession, the tenant may assert as a defense that there exists upon the leased premises a condition that constitutes, or will constitute, a fire hazard or a serious threat to the life, health, or safety of the occupants of the dwelling unit, including (i) a lack of heat, running water, light, electricity, or adequate sewage disposal facilities; (ii) an infestation of rodents; or (iii) a condition that constitutes material noncompliance on the part of the landlord with the rental agreement or provisions of law. A tenant may assert a defense as provided for in this section if, prior to the commencement of the action for rent or possession, the landlord or his agent refused or, having a reasonable opportunity to do so, failed to remedy the condition for which he was served notice as defined in § 55.1-1200 by the tenant or by a violation or condemnation notice from an appropriate state or local agency. For the purposes of this subsection, the period of time deemed to be unreasonable delay is left to the discretion of the court, except that there shall be a rebuttable presumption that a period in excess of 30 days from receipt of the notification by the landlord is unreasonable. B. It shall be a sufficient answer to such a defense provided for in this section if the landlord establishes that (i) the conditions alleged in the defense do not in fact exist; (ii) such conditions have been removed or remedied; (iii) such conditions have been caused by the tenant, his guest or invitee, members of the family of such tenant, or a guest or invitee of such family member; or (iv) the tenant has unreasonably refused entry to the landlord to the premises for the purposes of correcting such conditions. C. The court shall make findings of fact upon any defense raised under this section or the answer to any defense and shall issue any order as may be required, including any one or more of the following: 1. Reducing rent in such amount as the court determines to be equitable to represent the existence of any condition set forth in subsection A; 2. Terminating the rental agreement at the request of the tenant; or 3. Ordering the landlord to remedy the condition that resulted from the landlord's material noncompliance. D. If it appears that the tenant has raised a defense under this section in bad faith or has caused the violation or has unreasonably refused entry to the landlord for the purpose of correcting the condition giving rise to the violation, the court may impose upon the tenant the reasonable costs of the landlord, including court costs, the costs of repair where the court finds the tenant has caused the violation, and reasonable attorney fees. E. If the court finds that the tenant has successfully raised a defense under this section and enters judgment for the tenant, the court, in its discretion, may impose upon the landlord the reasonable costs of the tenant, including court costs, and reasonable attorney fees. F. Nothing in this section alters the right of a landlord to amend the amount requested at trial based on all amounts due and owing on the trial date, including ongoing rent.
Virginia Code § 55.1-1241 allows a tenant who is being sued for unpaid rent or eviction to raise the landlord's failure to maintain the property as a legal defense. Qualifying conditions include fire hazards, threats to life, health, or safety, lack of essential utilities, rodent infestations, or material violations of the rental agreement or law. The defense is available when the landlord was notified of the problem and failed to fix it within a reasonable time — with a rebuttable presumption that more than 30 days constitutes unreasonable delay. Courts may respond by reducing rent, terminating the lease, or ordering repairs, and may award attorney fees and costs to either side depending on the outcome.
Plain English — not legal advice.
Under Va. Code § 55.1-1241, a landlord defending against this affirmative defense can prevail by demonstrating that the alleged conditions do not exist, have already been remedied, were caused by the tenant or their guests, or that the tenant unreasonably blocked access for repairs. Operators who maintain documented records of maintenance requests, repair timelines, and access attempts are generally better positioned to respond to such claims. Addressing habitability notices promptly — and within the 30-day window that triggers the rebuttable presumption of unreasonable delay — is a practice consistent with compliance under this provision. Courts retain discretion to award the landlord reasonable costs and attorney fees if a tenant is found to have raised the defense in bad faith.
General guidance for property managers — not legal advice for your specific situation. Consult an attorney for advice on your case.
Va. Code § 55.1-1241 gives tenants a statutory defense in eviction or rent-collection proceedings when a landlord has failed to address serious habitability problems after receiving proper notice. To preserve this defense, the condition must generally have been reported to the landlord or flagged by a government agency before the landlord filed the action, and the landlord must have had a reasonable opportunity to remedy it. Tenants who believe this defense applies to their situation may benefit from contacting a local tenant-rights organization or legal aid office for general information about how courts evaluate these claims. If the court rules in the tenant's favor under this section, it has discretion to award the tenant reasonable court costs and attorney fees.
General guidance for tenants — not legal advice for your specific situation. Consult a tenant-rights organization or attorney for advice on your case.
Generated October 22, 2026 — auto-generated, not yet human-reviewed. See /transparency for methodology.
Effective Timeline
References Out
No outbound references recorded yet for this provision.
References In
No inbound references recorded yet for this provision.