The shortage of new antibiotics makes infections caused by gram-negative (G-) bacteria a significant clinical problem. The key enzymes involved in folate biosynthesis represent important targets for drug discovery, and new antifolates with novel mechanisms are urgently needed. By targeting to dihydrofolate reductase (DHFR), a series of 1,3-diamino-7H-pyrrol[3,2-f]quinazoline (PQZ) compounds were designed, and exhibited potent antibacterial activities in vitro, especially against multi-drug resistant G- strains. Multiple experiments indicated that PQZ compounds contain a different molecular mechanism against the typical DHFR inhibitor, trimethoprim (TMP), and the thymidylate synthase (TS) was identified as another potential but a relatively weak target. A significant synergism between the representative compound, OYYF-175, and sulfamethoxazole (SMZ) was observed with a strong cumulative and significantly bactericidal effect at extremely low concentrations (2 μg/mL for SMZ and 0.03 pg/mL for OYYF-175), which could be resulted from the simultaneous inhibition of dihydropteroate synthase (DHPS), DHFR and TS. PQZ compounds exhibited therapeutic effects in a mouse model of intraperitoneal infections caused by Escherichia coli (E. coli). The co-crystal structure of OYYF-175-DHFR was solved and the detailed interactions were provided. The inhibitors reported represent innovative chemical structures with novel molecular mechanism of action, which will benefit the generation of new, efficacious bactericidal compounds.