A device for generating a therapeutic electromagnetic field includes at least one conducting coil for placement in the vicinity of a patient. A signal generator is controllable to cause an electrical current to flow through the coil to produce a substantially spatially homogeneous electromagnetic field in at least a part of the patient. The electromagnetic field varies with a frequency that is selectable to substantially match a characteristic operational frequency of a nervous system of the patient.