The invention specifically discloses a microbial inoculant, in particular to a microbial inoculant prepared from swine borne bacillus licheniformis YHSH-02 and the application thereof in livestock breeding. The culture is preserved in CGMCC, 3#, Yard #1, West Beichen Road, Chaoyang District, Beijing, with the preservation number of CGMCC NO. 15454 and the preservation date of 15th, March, 2018. The bacillus licheniformis YHSH-02 is separated from a swine intestinal tract, can generate rich lipopeptides bacilli, antifungal proteins and the like, and can inhibit escherichia coli, pseudomonas aeruginosa, enterococcus faecalis, enterobacter cloacae, pseudomonas aeruginosa, proteusbacillus vulgaris, staphylococcus aureus, salmonella and clostridium. The bacillus licheniformis YHSH-02 obtained from the swine intestinal tract is a biological control potential culture which is high in preventing and treating efficiency and wide in preventing and treating range and can promote growth obviously,and has a good application and development prospect in non-resistant breeding.