This sheds light on how H. pylori infection compromises the efficacy of PD-L1-targeted immune therapy in gastric cancer. Here, CD274 is linked to gastric cancer.