TECHNOLOGY FOCUS - ORGANIC CHEMISTRY - Preferred Method: The method comprises using ash, peat, straw or bark, as the drying agent, in the fertilizer/soil enrichment agent production such that the fertilizer/soil enrichment agent contains an allowable amount of heavy metals. The method comprises: introducing at least one of agriculture slurries, food industry slurries, pulp and paper industry fiber slurries, filtrates and side flows and municipal bio-waste slurries in a first anaerobic digester or ethanol production, where the produced fertilizer is an organic fertilizer; introducing one or more of the agriculture slurries, food industry slurries, pulp and paper industry fiber slurries, filtrates and side flows and municipal bio-waste slurries to ethanol production prior to the first anaerobic digester; introducing algae mass from a first algae reactor to the first anaerobic digester; introducing algae mass from a first algae reactor to ethanol production; collecting the filtrate from a washer/wash press after the delignification stage at a pulp mill; introducing, optionally in addition to waste slurries or side flows or filtrates from other sources, waste slurry from a municipal waste water treatment and/or waste slurries not applicable for organic production in a second anaerobic digester, where the produced fertilizer is a non-organic fertilizer; introducing algae mass from a first algae reactor to the second anaerobic digester; introducing algae mass from a second algae reactor to the second anaerobic digester; thickening the residual slurry prior to fertilizer production by removing nitrogen containing filtrate from it and by separating nitrogen from the removed nitrogen containing filtrate prior to take the filtrate to algae reactor; introducing the separated nitrogen to the fertilizer; thickening the algae mass prior to its introduction to the ethanol production or biogas production by removing nutrient containing liquid from it and returning the nutrient containing liquid to algae cultivation; and removing heavy metals from the drying agent prior to mixing the drying agent with the residual slurry. Preferred Components: The drying agent is ash or disintegrated peat, straw or bark. The raw material of the ethanol production and/or biogas production is at least one of waste or side flow or filtrate of a pulp and/or paper mill, waste or side flow or filtrate of food industry, waste slurry or manure of agriculture, community bio waste slurry and community waste water slurry. ACTIVITY - Fertilizer.    MECHANISM OF ACTION - None given.