Cancer displays high levels of heterogeneity and mutation potential, and curing cancer remains a challenge that clinicians and researchers are eager to overcome. In recent years, the emergence of cancer immunotherapy has brought hope to many patients with cancer. Cancer immunotherapy reactivates the immune function of immune cells by blocking immune checkpoints, thereby restoring the anti-tumor activity of immune cells. However, immune-related adverse events are a common complication of checkpoint blockade, which might be caused by the physiological role of checkpoint pathways in regulating adaptive immunity and preventing autoimmunity. In this context, the intestinal microbiota has shown great potential in the immunotherapy of cancer. The intestinal microbiota not only regulates the immune function of the body, but also optimizes the therapeutic effect of immune checkpoint inhibitors, thus reducing the occurrence of complications. Therefore, manipulating the intestinal microbiota is expected to enhance the effectiveness of immune checkpoint inhibitors and reduce adverse reactions, which will lead to new breakthroughs in immunotherapy and cancer management.