NOVELTY - Producing an organic fertilizer, comprises pretreating raw material including pig manure, then adjusting nitrogen content, adding bran as auxiliary material to the raw material, adding plant ash, adding effective microorganism including bacteria strain, anaerobically fermenting and composting obtained mixture by adjusting water in windrow, controlling oxygen content, testing the quality and safety of the fertilizer, and further processing the fertilizer by naturally drying the fertilizer, crushing and sieving, adding functional microorganism, stirring and packaging, and storing in a bag.    USE - The method is useful for producing organic fertilizer (claimed), which is useful for killing Ascaris.    ADVANTAGE - The organic fertilizer has excellent product quality, organic matter content of greater than 45%, a nutrient content of greater than 5%, water content of less than 30%, pH value of 5.5-8.5, Ascaris egg mortality of greater than 98%, and fecal coliform Escherichia coli number of less than 50/g.    DETAILED DESCRIPTION - Producing an organic fertilizer, comprises pretreating raw material including pig manure, then adjusting nitrogen content, adding bran as auxiliary material to the raw material, where the carbon-to-nitrogen (C/N) ratio in the mixture is 28, adjusting moisture content to 60% and adding an appropriate amount of plant ash without affecting C/N ratio, adding effective microorganism including bacteria strain where the weight ratio of the bacteria strain to the pig manure is 1:7000-9000, anaerobically fermenting and composting obtained mixture by adjusting water in windrow having a width of 1.2-2.2 m, a height of 1-2 m and at any length, uniformly stacking layer by layer of the material, controlling oxygen using a machinery for once every two days, adjusting fermentation temperature to 55 degrees C, adjusting the temperature to slightly higher than 5 degrees C, pressing the organic ingredients under anaerobic conditions to prevent emergence of mineralization and facilitate fertility preservation, then testing the quality and safety of the fertilizer, and further processing the fertilizer by naturally drying the fertilizer until water content reaches 30%, crushing and sieving using 60 mesh sieves, adjusting trace elements according to the needs of different crops to reach normal growth of crops, adding functional microorganism according to different crop and market requirement, stirring and packaging, storing in a bag, and testing the bag.