The invention belongs to the technical field of microbes, and in particular relates to a strain of Bacillus megaterium FJW1 and its application in the preparation of bacteriostatic agents for plant pathogenic bacteria. The Bacillus megaterium FJW1 involved in the present invention has a preservation number of CCTCC M 2019660. The strain has alkali resistance, Strong environmental adaptability, anti-plant pathogenic bacteria and other functions; can grow in pH6‑pH8, 13% salt concentration, and has a good inhibitory effect on a variety of Fusarium pathogens, with a bacteriostatic rate as high as 95%, and inhibits banana wilt The rate is more than 97%, the inhibition rate to Penicillium and Mucor is more than 93%, the inhibition rate to Rhizopus is more than 91%, the inhibition rate to Cladosporium is more than 82%, and the inhibition rate to Botrytis cinerea and paint spot The inhibition rate of bacteria is more than 51%, and the inhibition rate of Alternaria tengella is more than 27%, which has the potential application value of preparing bio-control bacteria.