The invention discloses a bacillus megaterium strain (bacillus megaterium L2) and anapplication thereof. The bacillus megaterium strain has the morphological characteristics that the strains are cultivated on an ordinary agar culture medium for 36h at the temperature of 37 DEG C, a shape of a colony is similar to a circle, the surface of the colony is salient, yellow and not transparent, the colony is 2-4mm, the edge of the colony is tidy, and the surface of the colony is glossy or darker and does not secrete pigments; the strains are gram-positive bacteria, are in a shape of a rod, are (1.2-1.5)*(2.0-4.0) microns, are arranged in a chain shape and have the motility, and a spore is in an ellipse shape, is terminal or subterminal and is not obvious in expansion; and the strains can endure cultivation by 7 percent of NaCl, are positive to calalase, glucose ferment, amylolydrolysis, nitrate reduction, gelatin liquefaction, semisolid puncturing test, milk decomposition, citrate utilizing test and pH 5.7, and are negative to VP (Voges-Proskauer) test, benzpyrole test and mannitol hydrolysis. According to the bacillus megaterium strain disclosed by the invention, a heat-resistant spore can be produced, and the bacillus megaterium strain is easy to produce and process in dosage form and is also beneficial to survival, colonization and propagation.