The invention relates to bacillus licheniformis, a method for preparing a flocculating agent from the bacillus licheniformis and an application of the flocculating agent. The strain is bacillus licheniformis LZ-1 which is preserved in China General Microbiological Culture Collection Center on November 06, 2012 with preservation number of CGMCC No.6782. With the application of the bacillus licheniformis LZ-1 as well as a production method provided by the invention, a fermentation broth, which is high in flocculating activity, is obtained under the condition that an initial pH value is alkaline, and high-molecular-weight polysaccharide, which is 0.8-3.2*10<7>Da, serves as a major flocculating active ingredient. The polysaccharide flocculating agent provided by the invention has the advantages of being high in flocculating activity, low in dosage, low in production cost and the like, and the flocculating agent has a flocculating conditioning effect on sludge. The bacillus licheniformis LZ-1 fermentation broth or a product, which is extracted from the fermentation broth and contains the polysaccharide flocculating agent, can be applied to deep dewatering by sludge plate-frame pressure filtration in a mode of replacing a polyacrylamide flocculating agent, so that sewage treatment plant concentrated sludge, which is 96-98% in moisture content, is further dewatered into a sludge cake which is lower than 60% in moisture content and the size of the sludge is diminished to be 1/20-1/10 of an original size.