One thousand and nine hundred ninety-eight patients with advanced gastroesophageal cancer receiving anti-PD-1 or anti-PD-L-1 therapy were enrolled totally. Both the anti-PD-1 and anti-PD-L-1 therapy were significantly more efficacy in patients with high expression of PD-L1.