Pharmacological treatment of pain in multiple sclerosis (MS) is challenging due to the many underlying pathophysiological mechanisms. Few controlled trials show adequate pain control in this population. Emerging evidence suggests that pain might be more effectively classified and treated according to symptoms and underlying mechanisms. The new mechanism-based classification we propose here distinguishes nine types of MS-related pain: trigeminal neuralgia and Lhermitte’s phenomenon (paroxysmal neuropathic pain due to ectopic impulse generation along primary afferents), ongoing extremity pain (deafferentation pain secondary to lesion in the spino-thalamo-cortical pathways), painful tonic spasms and spasticity pain (mixed pains secondary to lesions in the central motor pathways but mediated by muscle nociceptors), pain associated with optic neuritis (nerve trunk pain originating from nervi nervorum), musculoskeletal pains (nociceptive pain arising from postural abnormalities secondary to motor disorders), migraine (nociceptive pain favored by predisposing factors or secondary to midbrain lesions), and treatment-induced pains. Identification of various types of MS-related pain will allow appropriate targeted pharmacological treatment and improve clinical practice.