In all, based on the in vitro and in vivo evidence above, we proved that L-KYN produced by IDO in gastric cancer cells was involved in shaping the TME that led to NK cell death. This evidence concerns the gene IDO1 and gastric cancer.