In this study, we employed bioinformatics methods to identify ferroptosis-related genes (ATM, GSK3B, HMGCR, KLF2, MAPK1, NFE2L1, NRAS, PCBP1, PIK3CA, RPL8, VDAC3) associated with the diagnosis of multiple sclerosis and constructed a diagnostic model. This evidence concerns the gene KLF2 and multiple sclerosis.