The isoquinoline alkaloid berberine, derived from Coptidis rhizoma, exhibits antibacterial, hypoglycemic, and anti-inflammatory properties. Canagliflozin is a sodium-glucose cotransporter 2 (SGLT2) inhibitor. We synthesized compounds B9OC and B9OBU by conjugating canagliflozin and n-butane at the C9 position of berberine, aiming to develop antimicrobial agents for combating bacterial infections worldwide. We utilized clinically prevalent pathogenic bacteria, namely Staphylococcus aureus, Escherichia coli, and Pseudomonas aeruginosa, to investigate the antibacterial efficacy of B9OC. This was accomplished through the determination of the MIC80 values, analysis of bacterial growth curves, evaluation of biofilm formation using crystal violet staining, assessment of impact on bacterial proteins via SDS-PAGE analysis, and observation of alterations in bacterial morphology utilizing field emission scanning electron microscopy. Meanwhile, the ADMET of compound B9OC was predicted using a computer-aided method. The findings revealed that B9OC exhibited lower minimal inhibitory concentrations against all three bacteria compared to berberine alone or in combination with canagliflozin. The minimal inhibitory concentrations (MICs) of B9OC against the three experimental strains were determined to be 0.035, 0.258, and 0.331 mM. However, B9OBu exhibited a lower level of antimicrobial activity compared to berberine. The compound B9OC exhibits a broad spectrum of antibacterial activity by disrupting the integrity of bacterial cell walls, leading to cellular rupture and the subsequent degradation of intracellular proteins.