The emergence of antimicrobial resistance due to the widespread and inappropriate use of antibiotics has now become the global health challenge. Flavonoids have long been reported to be a potent antimicrobial agent against a wide range of pathogenic microorganisms in vitro. Therefore, new antibiotics development based on flavonoid structures could be a potential strategy to fight against antibiotic-resistant infections. This research aims to screen the potency of flavonoids of the genus Erythrina as an inhibitor of bacterial ATPase DNA gyrase B. From the 378 flavonoids being screened, 49 flavonoids show potential as an inhibitor of ATPase DNA gyrase B due to their lower binding affinity compared to the inhibitor and ATP. Further screening for their toxicity, we identified 6 flavonoids from these 49 flavonoids, which are predicted to have low toxicity. Among these flavonoids, erystagallin B (334) is predicted to have the best pharmacokinetic properties, and therefore, could be further developed as new antibacterial agent.