We found that the core genes of CD8+ Trm cells are closely related to the clinical manifestations of OLP, and the expression differences of marker genes such as ITGA1, LITAF, SKIL, and cytokine-related genes such as IL17RA, IFNG41, IFNAR1, and TNFRSF6B were statistically significant between the two clinical types. Here, IL17RA is linked to oral lichen planus.