Repetitive transcranial magnetic stimulation (rTMS) is a non-invasive technique that allows cortical stimulation. Recent studies have shown that rTMS of the primary motor cortex or dorsolateral prefrontal cortex decreases pain in various pain conditions. The aim of this review was to summarize the main characteristics of rTMS-induced analgesic effects and to analyse the current data on its mechanisms of action.