Discoid lupus erythematosus (DLE) is a disorder of the immune system commonly seen in women of childbearing age. The pathophysiology and aetiology are still poorly understood, and no cure is presently available. Therefore, there is an urgent need to explore the underlying molecular mechanisms, as well as search for new therapeutic targets. Gene expression data from skin biopsies samples of DLE patients and healthy controls were downloaded from the Gene Expression Omnibus database. The differentially expressed genes (DEGs) between DLE and healthy control samples were identified by differential expression analysis. Samples were analysed using CIBERSORT to examine the proportion of immune infiltration. Weighted gene co-expression network analysis was used to screen for the module most relevant to immune infiltration. Candidate genes were uploaded to the TRRUST database to obtain the potential transcription factors regulating these genes. Protein-protein interaction (PPI) analysis was performed to obtain the hub genes most associated with immune infiltration among the candidate genes. A total of 273 DEGs were identified between the DLE and healthy control samples. The results of immunoinfiltration analysis showed that the abundances of resting memory CD4 T cells, activated memory CD4 T cells and M1 macrophages were significantly higher, while those of resting infiltration of plasma cells, regulatory T cells and dendritic cells were lower in DLE samples than in healthy control samples. Correlation analysis showed that ISG15, TRIM22, XAF1, IFIT2, OAS2, OAS3, OAS1, IFI44, IFI6, BST2, IFIT1 and MX2 were negatively correlated with the abundances of plasma cells, T-cell regulatory cells and resting dendritic cells and positively correlated with activated memory CD4 T cells and M1 macrophages. Our study shows that these hub genes may regulate DLE via immune-related pathways mediated by the infiltration of these immune cells., (© 2024. The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature.)