The gut microbiota plays a crucial role in maintaining homeostasis and promoting health. A growing number of studies have indicated that gut microbiota can affect cancer development, prognosis, and treatment through their metabolites. By remodeling the tumor microenvironment and regulating tumor immunity, gut microbial metabolites significantly influence the efficacy of anticancer therapies, including chemo-, radio-, and immunotherapy. Several novel therapies that target gut microbial metabolites have shown great promise in cancer models. In this review, we summarize the current research status of gut microbial metabolites in cancer, aiming to provide new directions for future tumor therapy.