After obtaining the intersecting genes of CD8 + T cells related to pathogenesis, OLP patients can be precisely classified into two different subtypes based on unsupervised clustering analysis, and subtype B has better immune infiltration results, providing clinicians with a reference for personalized treatment. This evidence concerns the gene CD8A and oral lichen planus.