In our present study, we uncovered that GC tumor-associated mast cells effectively inhibited T-cell’s immune function in a PD-L1–dependent manner in vitro and in vivo. Here, CD274 is linked to gastric cancer.