We identified SLC27A2 as a key gene involved in DLBCL and AML immunity through immune microenvironment analysis and GSEA analysis, and validated the effect of SLC27A2 on the DLBCL cycle through cell experiments. Here, SLC27A2 is linked to acute myeloid leukemia.