MS occurs when your immune system mistakingly attacks myelin, a protective coating on your nerves. These attacks lead to inflammation in the brain and spinal cord. The inflammation shows up as "lesions" or "plaques" on an MRI.