In this study, we investigated the antibacterial activity of octyl gallate (OG), an antioxidant food additive, against both Gram-positive and Gram-negative bacterial pathogens. OG demonstrated robust bactericidal activity against Gram-positive bacterial pathogens with minimum inhibitory concentrations (MIC) of 4 to 8 µg/mL and minimum bactericidal concentrations (MBC) of 8 to 16 µg/mL in vitro. However, OG exhibited limited antibacterial activity against Gram-negative bacteria, including E. coli, although it could inhibit bacterial growth in vitro. Importantly, OG administration in mice altered the fecal microbiome, significantly reducing microbial diversity, modifying community structure, and increasing the abundance of beneficial bacteria. Additionally, OG displayed low cytotoxicity and hemolytic activity. These findings suggest that OG could be developed as a novel antibacterial agent, particularly against multi-drug-resistant MRSA. Our results provide new insights into the therapeutic potential of OG in modulating the gut microbiome, especially in conditions associated with microbial imbalance, while ensuring food safety.