The invention discloses a soil conditioner. The soil conditioner is prepared from, by weight, 10-20 parts of activated sludge, 15-30 parts of core cobs, 8-17 parts of desulfurized gypsum, 10-50 parts of salsola collina, 9-17 parts of siliceous petrochemical powder, 5-13 parts of amino acid powder, 6-12 parts of rice bran, 10-20 parts of humic acid, 9-15 parts of zeolite powder, 5-11 parts of modified diatomite, 7-14 parts of water-soluble high polymer, 3-5 parts of mycelia, 2-4 parts of protein residue, 1-3 parts of cluster mallow fruits, 2-3 parts of herba lycopi and 1-2 parts of szechwan Chinaberry fruits. The soil conditioner uses activated sludge, corncob, salsola collina and the like as raw materials, the raw materials have a synergistic effect, the physical and chemical properties of soil can be improved, greenhouse gas emissions are reduced, and the soil conditioner has the functions of sterilization, bacterium inhibition and plant growth regulation.