NOVELTY - The system (10) comprises: a mechanization unit (11) fed with organic wastes; a boiler to ensure the heating of digesters (12) of the mechanization unit and/or sanitizing and drying a portion of a digestate from the mechanization unit; a group of cogeneration fueled by biogas produced from the mechanization unit for producing electricity and heat; a station of storage of biogas produced by the mechanization unit; and a control device controlling the mechanization unit. The cogeneration group and the boiler optimize the production of energy within the system.    USE - The system is useful for combined production of energies from renewable raw materials and/or organic waste such as liquid manure, muds of sewage treatment plant and organic waste of food industry (all claimed), where the energy is in a form of electricity, gas and thermal energy.    ADVANTAGE - The system guarantees the energy independence of a territory of square kilometers, and is capable of producing the energy in a cost-effective, energy-efficient and simple manner.    DETAILED DESCRIPTION - The system (10) comprises: a mechanization unit (11) fed with organic wastes; a boiler such as wood-fired boiler and a garbage boiler, to ensure the heating of digesters (12) of the mechanization unit and/or sanitizing and drying a portion of a digestate from the mechanization unit; a group of cogeneration fueled by biogas produced from the mechanization unit for producing electricity and heat; a station of storage of biogas produced by the mechanization unit; and a control device controlling the mechanization unit. The cogeneration group and the boiler optimize the production of energy within the system. The system further comprises: a grid system of the heat produced by the group of cogeneration and/or the boiler; a set of vehicles that utilizes biogas as fuel and is intended to transport the renewable raw materials and/or waste towards the mechanization unit and/or the digestates of the mechanization unit towards a composting zone and/or a provisional storage section before spreading; an additional mechanization unit established in a farm; and an additional vehicle ready to transport biogas produced by the additional mechanization unit towards the storage station. The control device includes a unit for managing a quantity of biogas stored in the storage station, and maintains a power generation capacity of the group of cogeneration to be 70-100% of its maximum capacity. The electrical performance of the cogeneration group is greater than or equal to 40%. The control device optimizes the production of energies within the system according to the compared rates of electricity and gas. The storage station is connected to a natural gas distribution network.    DESCRIPTION OF DRAWING(S) - The figure shows a schematic view of a system for producing energies (Drawing includes non-English language text).    System for combined production of energies (10)    Mechanization unit (11)    Digester (12)    Post-digester (13)    Unit of prepacking. (121)