In conclusion, LILRB1+ M2 TAMs were associated with a pro-tumor immune contexture and determine poor prognosis in gastric cancer. Here, LILRB1 is linked to gastric cancer.