These results suggested that ZNF521 may regulate the polarization of macrophages in gastric cancer. Here, ZNF521 is linked to gastric cancer.