Hughes et al. show that the transcriptional coregulator OCA-B promotes pathogenic maturation of stem-like CD4+ T cells and autoimmunity in mouse models of multiple sclerosis. This evidence concerns the gene CD4 and multiple sclerosis.