Electricity generation through distributed sources is increasingly used in the power system. Some benefits of this method of production are: production of electricity with less environmental pollution, lower price of electricity (thus higher economic profitability), higher quality of delivered electricity, potentially reduced investment in the electricity system. In this paper, we examine the pros and cons of integrating a distributed energy source into the electricity grid. In the second chapter, we talked about renewable electricity producers. In the third chapter, we dealt with the impact of renewable energy sources on the power system as well as the impacts on short circuits and losses in the network. The fourth chapter deals with the connection of the distributed system to the electricity network. An overview of the conditions and rules for connection and optimization of the connected distributed source is given. In the fifth chapter we talk about the challenges and solutions in production through distributed sources. Also, the principle of parallel and island operation of the source and the prevention of the negative effect of the distributed source on the electricity system are explained. In the sixth chapter, we made an analysis of a part of the power system to whose busbars we connected two wind power plants and two photovoltaic power plants. We have processed two cases: when the listed distributed sources are switched off, and when they work with their maximum power, and we have shown the impact of these sources on voltage conditions and labor losses in the network