This study assessed the prognostic significance of AGR2 and investigated its mechanism in cancer progression.<h4>Methods</h4>We used TCGA for pan-cancer AGR2 expression and survival analysis, examined macrophage infiltration in clinical specimens, and performed in vitro experiments with recombinant AGR2 (rAGR2) to assess macrophage polarization. The gene discussed is AGR2; the disease is cancer.