Inclusion Criteria:  Suffering a chronic pain condition of non-cancer nature. Those patients who report chronic pain even after overcoming an oncological process are suitable to participate, but only if they have received the definitive medical discharge and have been free from radiotherapy/chemotherapy for at least twelve months. Adult subjects (18-65 years old). Subjects able to provide informed consent to participate in the study and to self-report pain. Existing chronic pain which reaches an intensity of at least 4 on a 0-10 Numeric Rating Scale (NRS) on average over the past 3 months prior to enrolment. Pain intensity of at least 5 on a 0-10 NRS over the week prior to enrolment. Diagnosis of pharmaco-resistance to analgesic drugs across the WHO ladder. Pharmacological regimen have kept stable for at least two months previous to the enrolment, and it must not suffer modifications during the whole research period.  Exclusion Criteria:  Chronic pain derived from current cancer disease. Pregnant women or women in fertile age not having efficacious contraception during the whole period of the study. History of alcohol or drug abuse within the past 6 months as self-reported. Suffering from unstable medical conditions (e.g., uncontrolled diabetes, uncompensated cardiac issues, heart failure or chronic obstructive pulmonary disease). Intracranial ferromagnetic devices or implanted stimulator (basal ganglia stimulator, vagus nerve stimulation). Antecedents of, or active epilepsy. History of neurosurgery, psychiatric diseases other than anxiety or depression, traumatic brain injury with loss of consciousness, and/or cortical lesions.