Bitter gourd wilt, a severe vascular disease triggered by the soilborne pathogen Fusarium oxysporum f. sp. momordicae (FOM), markedly constrains bitter gourd yield. In this study, a novel strain BF19 of Brevibacillus brevis was isolated and identified, exhibiting strong antimicrobial activity against FOM through in vivo and in vitro experiments. To comprehensively assess the biocontrol potential of strain BF19, we conducted phenotypic, phylogenetic, and comparative genomics analyses. Phenotypic analysis revealed that BF19 exhibited 53.33% biocontrol efficacy and significantly increased the average plant height, root fresh weight, and dry weight. Whole-genome sequencing and comparative genomic analysis revealed numerous potential genes associated with biocontrol mechanisms in BF19. Importantly, the integration of metabolic cluster prediction with liquid chromatography‒tandem mass spectrometry (LC‒MS/MS) revealed the presence of a macrobrevin antibiotic, a product of polyketide synthases (PKSs), predominantly in BF19 fermentation products. The effectiveness of the Br. brevis strain BF19 and its crude extract against bitter gourd wilt has also been confirmed. This study provides a genetic framework for future investigations on PKSs and establishes a scientific basis for optimizing field applications of microbial biopesticides derived from Br. brevis BF19.