NOVELTY - Treating (M1) biomass (1) involves: a) providing biomass to at least one microbial digester unit; b) transferring output from at least one microbial digester unit to algae production unit (6); and c) harvesting the algae from the algae production unit, where gases produced in at least step (a) are transferred to at least one of gas separation unit (10), another digester unit, combustion unit or algae production unit.    USE - For treating biomass useful for producing energy and beneficial products (claimed), e.g. protein sources, fertilizer, biodiesel and pharmaceutical agents. Also useful for recycling of the nutrients, compounds and energy of biomass waste materials into usable gases, electricity, heat, cleaner water and beneficial products. Beneficial products are methane gas, hydrogen gas, ammonia gas, carbon dioxide, hydrogen sulfide, nitrogen rich fertilizer, proteins, amino acids, carbohydrate and/or mineral rich compositions, solutions or slurries, insecticidal mixture, charcoal, carbon black, insect repellant mixture, biodiesel, algae, algae products, heat, electricity, potable water, grey water.    ADVANTAGE - The method and system captures and utilizes the nitrogen, potassium, phosphorus present in the biomass material for production of proteins, oils and carbohydrates by algae or other plant sources, thus reduces the discharge of liquid wastes that contribute to groundwater contamination. Water present in the biomass waste feedstock and used in the methods and systems is cleaned of high levels of nutrients which allows for the water that is used for agricultural and municipal purposes.    DETAILED DESCRIPTION - INDEPENDENT CLAIMS are included for the following:    (1) system for treating biomass comprising at least one hydrolysis unit; at least one microbial digester unit; at least one algae production unit; and gas transferring equipment comprising at least conduit and pump; and    (2) producing (M2) energy and beneficial products from biomass involving removing large debris from biomass with debris separation unit (2) to results in biomass feedstock (2b); transferring the biomass feedstock to hydrolysis unit and retaining the biomass feedstock for 2-48 hours; providing output from the hydrolysis unit to at least one anaerobic digester unit (4); providing output from the at least one anaerobic digester unit to at least one aerobic digester unit (5); providing output from at least one aerobic digester unit to at least one algae production unit; harvesting algae from the algae production unit; where gases produced in at least one unit are transferred to at least one of gas separation unit, another digester unit, combustion unit or algae production unit; and the energy produced in combustion unit is transferred to at least one unit, and heat produced by at least one unit is transferred to at least one unit.    DESCRIPTION OF DRAWING(S) - The figure shows perspective view of system for treating biomass.    Biomass (1)    Debris separation unit (2)    Oversized debris (2a)    Biomass feedstock (2b)    Hydrolysis unit (3)    Gases (3a)    Anaerobic digester unit (4)    Aerobic digester unit (5)    Input gases (5d)    Algae production unit (6)    Gas separation unit (10)