Doctors also may prescribe medical marijuana to treat: 1  Muscle spasms caused by multiple sclerosis. 2  Nausea from cancer chemotherapy. 3  Poor appetite and weight loss caused by chronic illness, such as HIV, or nerve pain.  Seizure 1  disorders. Crohn's disease.