The immune response facilitated by tumor-associated macrophages is a vital determinant of tumor progression. We identified differentially expressed genes between various macrophage phenotypes in the Gene Expression Omnibus, and used Kaplan-Meier Plotter to determine which of them altered the prognosis of esophageal carcinoma patients. Fibrinogen-like protein 2 (FGL2), an immunosuppressive factor in the tumor microenvironment of various cancers, was upregulated in M2 macrophages, and higher FGL2 expression was associated with poorer survival in esophageal carcinoma patients. Using the TIMER database, we found that FGL2 expression correlated positively with the levels of immune markers of infiltrating B cells, CD8+ T cells, CD4+ T cells, macrophages, neutrophils and dendritic cells in esophageal carcinoma samples. Correlation analyses in cBioPortal revealed that the mRNA levels of FGL2 correlated strongly with those of interleukin 10, matrix metalloproteinase 9, C-C motif chemokine ligand 5, T-cell immunoglobulin mucin 3, interleukin 13, vascular cell adhesion molecule 1, macrophage colony-stimulating factor and fibroblast growth factor 7 in esophageal carcinoma tissues. The same cytokines were upregulated when esophageal squamous cell carcinoma cells were co-cultured with M2-like tumor-associated macrophages. Thus, by secreting FGL2, M2-like tumor-associated macrophages may create an immunosuppressive tumor microenvironment that induces the occurrence and progression of esophageal carcinoma.