Purpureocillium lilacinum of Ophiocordycipitaceae is one of the most promising and commercialized agents for controlling plant parasitic nematodes, as well as other insects and plant pathogens. However, how the fungus functions at the molecular level remains unknown. Here, we sequenced two isolates (PLBJ-1 and PLFJ-1) of P. lilacinum from different places Beijing and Fujian. Genomic analysis showed high synteny of the two isolates, and the phylogenetic analysis indicated they were most related to the insect pathogen Tolypocladium inflatum. A comparison with other species revealed that this fungus was enriched in carbohydrate-active enzymes (CAZymes), proteases and pathogenesis related genes. Whole genome search revealed a rich repertoire of secondary metabolites (SMs) encoding genes. The non-ribosomal peptide synthetase LcsA, which is comprised of ten C-A-PCP modules, was identified as the core biosynthetic gene of lipopeptide leucinostatins, which was specific to P. lilacinum and T. ophioglossoides, as confirmed by phylogenetic analysis. Furthermore, gene expression level was analyzed when PLBJ-1 was grown in leucinostatin-inducing and non-inducing medium, and 20 genes involved in the biosynthesis of leucionostatins were identified. Disruption mutants allowed us to propose a putative biosynthetic pathway of leucinostatin A. Moreover, overexpression of the transcription factor lcsF increased the production (1.5-fold) of leucinostatins A and B compared to wild type. Bioassays explored a new bioactivity of leucinostatins and P. lilacinum: inhibiting the growth of Phytophthora infestans and P. capsici. These results contribute to our understanding of the biosynthetic mechanism of leucinostatins and may allow us to utilize P. lilacinum better as bio-control agent. Purpureocillium lilacinum, a well-known bio-control agent against various plant pathogens in agriculture, can produce antibiotic leucinostatins—peptaibiotic with extensive biological activities, including antimalarial, antiviral, antibacterial, antifungal, and antitumor activities, as well as phytotoxic. We have sequenced the genomes of two P. lilacinum isolates, and compared them with other fungi, focusing on their bio-control characteristics. We discovered a rich repertoire of CAZymes, proteases, SMs and pathogenesis related genes. We also identified a gene cluster containing 20 genes involved in the leucinostatins A and B biosynthesis by gene deletion, qRT-PCR and RNA-seq analyses. A transcription factor in the pathway was overexpressed, resulting in the upregulation of the related genes and a 1.5-fold increase in leucinostatins A and B. A new bioactivity of leucinostatins, inhibition of the growth of the notorious Phytophthora, was identified in this study by confronting incubation with P. lilacinum. These results provided new strategies for the agricultural development of leucinostatins and improving P. lilacinum strains.