NOVELTY - System of energy generation from biomass and producing vegetable substances, comprises generator for producing synthesis gas with intake for biomass, and photobioreactor with an intake, where the electricity generator is suitable for production of vegetable substances, electricity generator is suitable for generating from the oxidization of the synthesis gas, thermal energy, electricity, carbon dioxide and water, and the greenhouse is connected to the electricity generator to receive thermal energy, electricity, carbon dioxide and water.    USE - The system is useful for generating energy from biomass and producing of vegetable substances (claimed).    ADVANTAGE - The system is environmentally-friendly.    DETAILED DESCRIPTION - System of energy generation from biomass and producing vegetable substances, comprises generator for producing synthesis gas (3) with intake for biomass (2), electricity generator (4) starting from synthesis gas connected to the synthesis gas generator, and greenhouse (10) suitable for production of vegetable substances (12), and photobioreactor (9) with an intake for receiving organically-contaminated water (1), where the electricity generator is suitable for generating from the oxidization of the synthesis gas, thermal energy, electricity, carbon dioxide and water, the greenhouse is being connected to the electricity generator to receive thermal energy, electricity, carbon dioxide and water, the photobioreactor uses micro-algae suitable for photosynthesis and eutrophication, the photobioreactor is suitable to purify organically contaminated water using light and carbon dioxide, the photobioreactor is connected to the electricity generator to receive the carbon dioxide produced from the unit (7) and/or thermal energy produced by the unit (6), the photobioreactor is connected to the synthesis gas generator to receive mineral salts through generator of mineral salts (5), and the photobioreactor is connected to the greenhouse receiving purified water (11) obtained from organically contaminated water. An INDEPENDENT CLAIM is included for method for generating energy from biomasses and producing vegetable substances, which involves (a) introducing the biomass into generator of synthesis gas to give mineral salts and synthesis gas containing carbon monoxide, (b) introducing the synthesis gas into an electricity generator, (c) oxidizing the synthesis gas in the electricity generator to give electricity, thermal energy, carbon dioxide and water, (d) introducing the residues of oxidization and the mineral salts into greenhouse for production of vegetable substances, and (e) introducing organically-contaminated water into photobioreactor, and introducing the carbon dioxide and/or the thermal energy produced and/or the mineral salts into the photobioreactor, and supplying the purified water to the greenhouse.    DESCRIPTION OF DRAWING(S) - The drawing shows operational scheme of the above-mentioned system.    Organically-contaminated water (1)    Biomass (2)    Synthesis gas (3)    Electricity generator (4)    Mineral salts (5)    Thermal energy produced by the unit (6)    Carbon dioxide produced from the unit (7)    Photobioreactor (9)    Greenhouse (10)    Purified water (11)    Vegetable substances (12)