Objective To explore the therapeutic effect of antibacterial agents in patients with bacterial infection consulted by clinical pharmacists, and to analyze its influencing factors. Methods A retrospective analysis was conducted on clinical data from 210 patients with bacterial infection consulted by clinical pharmacists in a general class Ⅲ hospital. Patients were assigned to ineffective group (42 cases) or effective group (168 cases) according to antibacterial agents therapeutic effect. The relevant clinical data were compared between patients of the two groups. The multivariate Logistic regression model was adopted to analyze the influencing factors for therapeutic effect of antibacterial agents in patients with bacterial infection consulted by clinical pharmacists. Results (1) The acceptance rate of clinical pharmacists' consultation opinions was 89.05%. The therapeutic effectiveness rate of antibacterial agents in patients with acceptance of clinical pharmacist's consultation opinions was higher than that in patients without acceptance of clinical pharmacists' consultation opinions (P<0.05). (2) There was no statistically significant difference in the proportions of systemic use of antibacterial agents and combined use of antibacterial agents between patients before and after clinical pharmacists' consultation (P>0.05). The proportion of patients using only one antibacterial agent after clinical pharmacists' consultation was higher than that before clinical pharmacists' consultation (P<0.05). (3) Among 210 patients with bacterial infections, 164 underwent pathogen submission, and a total of 79 bacterial strains were cultured. Gram⁃negative bacteria (72.15%) were the predominant type. The top three bacterial isolates were as follows: Escherichia coli and Klebsiella pneumoniae (both 16.46%), Pseudomonas aeruginosa (15.19%), and Staphylococcus aureus (7.59%). (4) In the effective group, the number of discharge diagnoses, and the proportions of pulmonary infection, hypoproteinemia, renal disease, shock, as well as the number of main discharge diagnoses, the proportion of pathogen submission after clinical pharmacists' consultation, the proportion of carbapenem use before clinical pharmacists' consultation, the proportion of carbapenem use after clinical pharmacists' consultation, and the proportion of neutrophil percentage>75% before clinical pharmacists' consultation, the proportion of patients with AST>40 U/L before clinical pharmacists' consultation were less or lower than those in the ineffective group, whereas the proportion of pathogen submission before clinical pharmacists' consultation, the proportion of acceptance of clinical pharmacists' consultation opinions, the proportion of cefoperazone sulbactam use after clinical pharmacists' consultation, and the endogenous creatinine clearance rate before clinical pharmacists' consultation in the effective group were higher than those in the ineffective group (P<0.05). (5) More discharge diagnoses, shock, pathogen submission after clinical pharmacists' consultation, and neutrophil percentage>75% before clinical pharmacists' consultation were the risk factors for ineffective antibacterial agents therapy in patients with bacterial infection who were consulted by clinical pharmacists. While pathogen submission before clinical pharmacists' consultation, acceptance of clinical pharmacists' consultation opinions, and use of cefoperazone sulbactam after clinical pharmacists' consultation were the protective factors for effective antibacterial agents therapy in patients with bacterial infection who were consulted by clinical pharmacists (P<0.05). Conclusion More discharge diagnoses, shock, pathogen submission after clinical pharmacists' consultation, and neutrophil percentage>75% before clinical pharmacists' consultation are the risk factors for ineffective antibacterial agents therapy in patients with bacterial infection who are consulted by clinical pharmacists. However, pathogen submission before clinical pharmacists' consultation, acceptance of clinical pharmacists' consultation opinions, and use of cefoperazone sulbactam after clinical pharmacists' consultation are the protective factors for effective antibacterial agents therapy in patients with bacterial infection who are consulted by clinical pharmacists.