ADEM is a brief but widespread bout of inflammation that can damage myelin in your brain, spinal cord, and sometimes the nerve connecting your eye to your brain, called the optic nerve. You get the condition when your body attacks its own tissues in response to infection with a virus or bacteria. Rarely, you can get it because of a reaction to a vaccine. Sometimes, the cause is unknown.