NOVELTY - Wastewater is processed using waste heat steam. The coal of raw material is screened to form small-block-shaped coal. The coal-water slurry additive is added to high-concentration wastewater, uniformly stirred and transmitted to a ball grinder with small-block-shaped coal. The mixture is gasified and separated to obtain water gas. The residual hydrogen and nitrogen are refined and purified to obtain ammonia. The other portion of hydrogen is mixed with highly-pure nitrogen to obtain ammonia.    USE - Co-production and synthesis of ammonia.    ADVANTAGE - The ammonia is synthesized by simple method, without environmental pollution.    DETAILED DESCRIPTION - The pH value of wastewater containing high-concentration chemical oxygen demand is adjusted to 7 or more, using sulfuric acid or waste alkali discharged during production of potassium borohydride. The concentration of chemical oxygen demand is measured. The wastewater is processed using waste heat steam discharged during synthesis of ammonia such that the concentration of wastewater chemical oxygen demand is 150000 or more, and to obtain coal-water slurry. The distilled water is used for gasifying a chilling chamber circularly. The coal of raw material is screened during rolling to form small-block-shaped coal by a crushing machine. The coal-water slurry additive is added to high-concentration wastewater, uniformly stirred and transmitted to a ball grinder with small-block-shaped coal in predetermined proportion. The mixture is ground, stirred by intermediate underground groove, and screened in vibration screen such that to obtain coal and slurry material of 200 meshes or less. The coal-water slurry has concentration of 55-65%. The resulting mixture is supplied a product groove by a material slurry pump and stirred. The air is deeply and coldly separated by an air separation device to obtain pure oxygen. The compressed oxygen and coal-water slurry are sprayed to a gasification furnace by a nozzle. The mixture is gasified and separated at 1350-1450 degrees C and high pressure of 1.1-1.2 MPa to obtain water gas including carbon monooxide, carbon dioxide, hydrogen, nitrogen and micro hydrogen sulfide. An inorganic acid and hydrogen are generated. The water gas is converted such that the carbon monooxide reacts with water steam to obtain carbon dioxide and hydrogen. The hydrogen sulfide of converted gas is removed by wet desulfurization. A portion of desulfurized gas is subjected to pressure-swing-adsorption carbonization process to react with ammonia such that to remove carbon dioxide and to obtain ammonia bicarbonate. The residual hydrogen and nitrogen are refined and purified to obtain ammonia. The reminder of decarburized gas is decarbonized, and hydrogen is extracted to obtain highly-pure hydrogen product. A portion of hydrogen is used for producing potassium borohydride. The other portion of hydrogen is mixed with highly-pure nitrogen to obtain ammonia. The residual carbon dioxide is compressed, purified and rectified to obtain carbon dioxide as finished product. The residual nitrogen is purified, discharged and recycled to air. The waste heat produced by synthesis of ammonia is circularly and comprehensively utilized. The high-concentration wastewater is gasified and separated to obtain hydrogen, nitrogen and carbon dioxide which are used for production of ammonia and liquid carbon dioxide.