In this cohort study of 2038 patients with MS and a matched cohort of 10 182 individuals without MS, all-cause physician visits were elevated 14 years before MS onset. Mental health–related visits and visits for ill-defined symptoms and signs were elevated 14 to 15 years before MS onset, followed by neurology and ophthalmology consultations (8-9 years before onset) and musculoskeletal, sensory, and nervous system visits (4-8 years before onset).