Multiple sclerosis (MS) age at onset (AAO) is a clinical predictor of long-term disease outcomes, independent of disease duration. Little is known about the genetic and biological mechanisms underlying age of first symptoms. We conducted a genome-wide association study (GWAS) to investigate associations between individual genetic variation and the MS AAO phenotype. The study population was comprised participants with MS in 6 clinical trials: ADVANCE (N = 655; relapsing-remitting [RR] MS), ASCEND (N = 555; secondary-progressive [SP] MS), DECIDE (N = 1,017; RRMS), OPERA1 (N = 581; RRMS), OPERA2 (N = 577; RRMS), and ORATORIO (N = 529; primary-progressive [PP] MS). Altogether, 3,905 persons with MS of European ancestry were analyzed. GWAS were conducted for MS AAO in each trial using linear additive models controlling for sex and 10 principal components. Resultant summary statistics across the 6 trials were then meta-analyzed, for a total of 8.3 × 10-6 single nucleotide polymorphisms (SNPs) across all trials after quality control and filtering for heterogeneity. Gene-based tests of associations, pathway enrichment analyses, and Mendelian randomization analyses for select exposures were also performed. Four lead SNPs within 2 loci were identified (p < 5 × 10-8), including a) 3 SNPs in the major histocompatibility complex and their effects were independent of HLA-DRB1*15:01 and b) a LOC105375167 variant on chromosome 7. At the gene level, the top association was HLA-C (p = 1.2 × 10-7), which plays an important role in antiviral immunity. Functional annotation revealed the enrichment of pathways related to T-cell receptor signaling, autoimmunity, and the complement cascade. Mendelian randomization analyses suggested a link between both earlier age at puberty and shorter telomere length and earlier AAO, while there was no evidence for a role for either body mass index or vitamin D levels. Two genetic loci associated with MS AAO were identified, and functional annotation demonstrated an enrichment of genes involved in adaptive and complement immunity. There was also evidence supporting a link with age at puberty and telomere length. The findings suggest that AAO in MS is multifactorial, and the factors driving onset of symptoms overlap with those influencing MS risk.