NOVELTY - Conversion of agricultural waste to electrical energy and heat energy, comprises (i) sorting, pyrolyzing raw material, preparing fertilizer, crushing, drying, carrying out solid-liquid separation, and drying; (ii) carrying out integrated pyrolysis of carbon gas, and producing biological carbon, and high temperature steam; (iii) cooling, and carrying out cyclone separation; (iv) producing fertilizer; (v) distilling wood tar, and converting to gasoline, diesel oil and asphalt; (vi) filtering, adsorbing, and washing; and (vii) converting biomass to electrical energy and heat energy.    USE - The method is useful for conversion of agricultural waste to electrical energy and heat energy.    ADVANTAGE - The method has an agricultural waste utilization rate of 100%; prevents the stacking and burning of activated sludge of agricultural wastes, and production of pesticide and consumption of oil by the fertilizer and thus it is environmental-friendly; utilizes long-term fertilizers; and produces energy which is utilized by the people in rural areas.    DETAILED DESCRIPTION - Conversion of agricultural waste to electrical energy and heat energy, comprises (i) sorting, and pyrolysing raw material, preparing fertilizer by using the pyrolyzed raw material, crushing, drying, carrying out solid-liquid separation, and drying again; (ii) carrying out integrated pyrolysis of carbon gas or pyrolysis, and producing biological carbon, and high temperature steam; (iii) cooling, allowing to stand to divide into layers, carrying out cyclone separation method of the high temperature mixed steam, and separating wood tar, wood vinegar and gas; (iv) producing fertilizer by taking biological carbon powder, wood vinegar, an inorganic fertilizer, a microbial fertilizer and an organic fertilizer according to different combination, and different types and functions of the fertilizer; (v) distilling wood tar, and converting to gasoline, diesel oil and asphalt; (vi) filtering, adsorbing, and washing the gas, and converting to a clean gas; and (vii) passing biomass to a fuel gas generator, supplying air by a pipe network, and converting biomass to electrical energy and heat energy in a heating boiler.