The expression patterns and prognostic roles of SLC7A11, GPX4, and AIFM2 and the relationships between the expression levels of these genes and immune infiltration levels in pan-cancer were analyzed by using TIMER, gene expression profiling interactive analysis (GEPIA), Oncomine, and Kaplan–Meier databases. The gene discussed is AIFM2; the disease is cancer.