While emerging evidence highlights the significance of gut microbiome in gastrointestinal infectious diseases, treatments like Fecal Microbiota Transplantation (FMT) and probiotics are gaining popularity, especially for diarrhea patients. However, the specific role of the gut microbiome in different gastrointestinal infectious diseases remains uncertain. There is no consensus on whether gut modulation therapy is universally effective for all such infections. In this comprehensive review, we examine recent developments of the gut microbiome’s involvement in several gastrointestinal infectious diseases, including infection of Helicobacter pylori, Clostridium difficile, Vibrio cholerae, enteric viruses, Salmonella enterica serovar Typhimurium, Pseudomonas aeruginosa Staphylococcus aureus, Candida albicans, and Giardia duodenalis. We have also incorporated information about fungi and engineered bacteria in gastrointestinal infectious diseases, aiming for a more comprehensive overview of the role of the gut microbiome. This review will provide insights into the pathogenic mechanisms of the gut microbiome while exploring the microbiome’s potential in the prevention, diagnosis, prediction, and treatment of gastrointestinal infections.