Background. Cluster of differentiation 86 (CD86), also known as B7-2, is a molecule expressed on antigen-presenting cells that provides the costimulatory signals required for T cell activation and survival. CD86 binds to two ligands on the surface of T cells: the antigen CD28 and cytotoxic T lymphocyte-associated protein 4 (CTLA-4). By binding to CD28, CD86—together with CD80—promotes the participation of T cells in the antigen presentation process. However, the interrelationships among CD86, immunotherapy, and immune infiltration in acute myeloid leukemia (AML) are unclear. Methods. The immunological effects of CD86 in various cancers (including on chemokines, immunostimulators, MHC, and receptors) were evaluated through a pan-cancer analysis using TCGA and GEO databases. The relationship between CD86 expression and mononucleotide variation, gene copy number variation, methylation, immune checkpoint blockers (ICBs), and T-cell inflammation score in AML was subsequently examined. ESTIMATE and limma packages were used to identify genes at the intersection of CD86 with StromalScore and ImmuneScore. Subsequently, GO/KEGG and PPI network analyses were performed. The immune risk score (IRS) model was constructed, and the validation set was used for verification. The predictive value was compared with the TIDE score. Results. CD86 was overexpressed in many cancers, and its overexpression was associated with a poor prognosis. CD86 expression was positively correlated with the expression of CTLA4, PDCD1LG2, IDO1, HAVCR2, and other genes and negatively correlated with CD86 methylation. The expression of CD86 in AML cell lines was detected by QRT-PCR and Western blot, and the results showed that CD86 was overexpressed in AML cell lines. Immune infiltration assays showed that CD86 expression was positively correlated with CD8 T cell, Dendritic cell, macrophage, NK cell, and Th1_cell and also with immune examination site, immune regulation, immunotherapy response, and TIICs. ssGSEA showed that CD86 was enriched in immune-related pathways, and CD86 expression was correlated with mutations in the genes RB1, ERBB2, and FANCC, which are associated with responses to radiotherapy and chemotherapy. The IRS score performed better than the TIDE website score. Conclusion. CD86 appears to participate in immune invasion in AML and is an important player in the tumor microenvironment in this malignancy. At the same time, the IRS score developed by us has a good effect and may provide some support for the diagnosis of AML. Thus, CD86 may serve as a potential target for AML immunotherapy.