Aiming at the impact of more and more distributed photovoltaics on the voltage stability of the system, the impact mechanism of distributed photovoltaics on the voltage stability of the distribution network is analyzed. Firstly, the voltage stability model of the distributed photovoltaic energy storage system is established, and on this basis, the influence characteristics of distributed energy storage on the voltage of the receiving end grid nodes are studied; then the coordination relationship model between photovoltaic and energy storage systems is established. Coordinate optimization of energy storage devices under different output conditions; by establishing the minimum objective function of system voltage fluctuation in the receiving end grid, taking the line power flow of the receiving end grid and the charging and discharging power of battery energy storage as constraints, the particle swarm algorithm is used. Quickly calculate the state of charge of the distributed energy storage, and judge the charging and discharging energy. Taking the actual operation data of a receiving-end power grid as an example, the simulation verification is carried out. The results show that the control method based on the coordination of distributed photovoltaic and energy storage proposed in this paper can effectively improve the voltage stability of the receiving-end power grid.