A sufficient therapeutic effect is achieved for each of a plurality of pathologies constituting a cardiac failure. Provided is a nerve stimulation apparatus including: a heartbeat detection unit that detects a heartbeat; a nerve electrode that is connected to a nerve controlling a heart; a nerve stimulation unit that outputs an electrical pulse to the nerve electrode; a functional-status detection unit that detects in-vivo information that indicates a functional status of the heart; and a stimulation-timing controller that controls the nerve stimulation unit so as to switch between a synchronous mode in which the electrical pulse is output in synchronization with the heartbeat detected by the heartbeat detection unit and an asynchronous mode in which the electrical pulses are output at constant time intervals, on the basis of the in-vivo information that indicates the functional status of the heart detected by the functional-status detection unit.