Our data elucidate the role of H2S in the regulation of IDO1 and provide a novel strategy to target H2S for cancer immunotherapy. Here, IDO1 is linked to cancer.