Infectious diseases caused by pathogenic bacteria severely threaten human health. Traditional Chinese herbs are potential sources of new or alternative medicine. In this study, we analyzed for the first time antibacterial substances in the methanol-phase extract from a traditional Chinese herb—Commelina communis Linn—which showed an inhibition rate of 58.33% against 24 species of common pathogenic bacteria. The extract was further purified using preparative high-performance liquid chromatography (Prep-HPLC), which generated four single fragments (Fragments 1 to 4). The results revealed that Fragment 1 significantly increased bacterial cell surface hydrophobicity and membrane permeability and decreased membrane fluidity, showing disruptive effects on cell integrity of Gram-positive and Gram-negative bacteria, such as Bacillus cereus, Enterococcus faecalis, Staphylococcus aureus, and Salmonella enterica subsp., compared to the control groups (p < 0.05). In sum, 65 compounds with known functions in Fragment 1 were identified using liquid chromatography and mass spectrometry (LC-MS), of which quercetin-3-o-glucuronide was predominant (19.35%). Comparative transcriptomic analysis revealed multiple altered metabolic pathways mediated by Fragment 1, such as inhibited ABC transporters, ribosome, citrate cycle and oxidative phosphorylation, and upregulated nitrogen metabolism and purine metabolism, thereby resulting in the repressed bacterial growth and even death (p < 0.05). Overall, the results of this study demonstrate that Fragment 1 from C. communis Linn is a promising candidate against common pathogenic bacteria.