Our results reveal the underlying mechanism of C3, CR4, and C5aR1 in regulating the polarization of tumor-associated macrophages (TAMs) in STAD. Here, C5AR1 is linked to gastric adenocarcinoma.