This article addresses issues related to environmental pollution.Particular attention is paid to the prevention of environmental pollution by livestock waste, which prompted the creation of closed ecological and biotechnical systems as environmentally closed production structures that can fit into the equilibrium system of the environment with minimal damage to it. An energy-saving and environmental protection technology for the processing and disposal of livestock waste with a maximum coefficient of energy transfer to livestock products has been developed, which consists in a combined treatment of waste in three stages, by transferring waste from one technological module to another, which makes it possible to completely utilize mineral substances in waste. The focus is on vermicultivation, microalgae cultivation and anaerobic fermentation in a bioenergy plant. To increase the productivity of growing microalgae, the authors proposed a deep type cultivator with submerged movable light sources.The technological parameters of the bioenergy installation for waste treatment are determined. An energy-saving and environmental-friendly technology has been developed for processing The main contribution of the study is the development of energy-saving and environmental technology for the processing and disposal of livestock waste with a maximum coefficient of energy transfer to livestock products.