In this review, we summarize the recent studies on the effects of gut microbiota on PD-1 and PD-L1 blockade and discuss the new perspectives on improving efficacy of PD-1 and PD-L1 blockade therapy in cancer treatment through modulating gut microbiota. The gene discussed is CD274; the disease is cancer.