Bile acids (BAs) play a crucial role in the human body's defense against infections caused by bacteria, fungi, and viruses. BAs counteract infections not only through interactions with intestinal bacteria exhibiting bile salt hydrolase (BSH) activity but they also directly combat infections. Building upon our research group's previous discoveries highlighting the role of BAs in combating infections, we have initiated an in-depth investigation into the interactions between BAs and intestinal microbiota. Leveraging the existing literature, we offer a comprehensive analysis of the relationships between BAs and 16 key microbiota. This investigation encompasses bacteria (e.g., Clostridioides difficile (C. difficile), Staphylococcus aureus (S. aureus), Escherichia coli, Enterococcus, Pseudomonas aeruginosa, Mycobacterium tuberculosis (M. tuberculosis), Bacteroides, Clostridium scindens (C. scindens), Streptococcus thermophilus, Clostridium butyricum (C. butyricum), and lactic acid bacteria), fungi (e.g., Candida albicans (C. albicans) and Saccharomyces boulardii), and viruses (e.g., coronavirus SARS-CoV-2, influenza virus, and norovirus). Our research found that Bacteroides, C. scindens, Streptococcus thermophilus, Saccharomyces boulardii, C. butyricum, and lactic acid bacteria can regulate the metabolism and function of BSHs and 7α-dehydroxylase. BSHs and 7α-dehydroxylase play crucial roles in the conversion of primary bile acid (PBA) to secondary bile acid (SBA). It is important to note that PBAs generally promote infections, while SBAs often exhibit distinct anti-infection roles. In the antimicrobial action of BAs, SBAs demonstrate antagonistic properties against a wide range of microbiota, with the exception of norovirus. Given the intricate interplay between BAs and intestinal microbiota, and their regulatory effects on infections, we assert that BAs hold significant potential as a novel approach for preventing and treating microbial infections.