The exact cause of multiple sclerosis is still unknown, but it is believed to result from a combination of genetic and environmental factors. The autoimmune aspect of MS occurs when the immune system mistakenly identifies myelin as a foreign substance and begins to attack it. Factors that may contribute to the development of MS include genetic predisposition, viral infections, vitamin D deficiency, and other environmental triggers.