In summary, we identified five biomarkers (CXCL12, PDGFRL, AGTR1, PTGER3, and S1PR1) and constructed diagnostic model, furthermore predicted the potential therapeutic drugs for EM. This evidence concerns the gene AGTR1 and erythema multiforme.