The invention provides Lactobacillus salivarius M6, which is preserved in the China General Microbiological Culture Collection Center (CGMCC) with the number of CGMCC 3505. The invention also provides a lactobacillus which can be mixed with animal feed or added into water, can be used together with antibiotics at the same time, and has antibiotic resistance. The strain can inhibit growth of Salmonella enterica, Escherichia coli and other pathogenic bacteria. The antibacterial composition of the Lactobacillus salivarius M6 can be used in drinking water, drinking water additives, feed and food additives of animals, human and animal medical composition, as well as drinks, drinking additives, foods, food additives and the like of humans. By implementation of the invention, pathogenic bacterium infection of animals or humans can be effectively prevented and treated, and the number of intestinal probiotics can be increased or maintained, so that the growth of pathogenic bacteria is inhibited, the dosage of antibiotics is reduced, and the aim of preventing disease infection of animals and humans can be achieved.