In some examples, an electromechanical disassociation state (EMD) of a heart of a patient can be treated by delivering electrical stimulation to a tissue site to at least one of modulate afferent nerve activity or inhibit efferent nerve activity upon determining that the heart is in an electromechanical dissociation state, where the tissue site comprises at least one of a nonmyocardial tissue site or a nonvascular cardiac tissue site. The delivery of electrical stimulation may effectively treat the EMD state of the heart, e.g., by enabling effective mechanical contraction of the heart. In another example, an electromechanical disassociation state of a heart of a patient can be treated by determining autonomic nervous system activity associated with a detected EMD state of the heart of a patient, and delivering electrical stimulation therapy to the patient based on the determined autonomic nervous system activity of the patient associated with the EMD state.