The voltage variation of the distribution network caused by the large-scale grid connection of photovoltaic power supply may exceed the limit. Due to the limitation of the capability of the voltage regulation equipment, the voltage regulation method on the network source side is not satisfied. Against the voltage beyond limit of the distribution network caused by grid-connected photovoltaic power supply, the electric vehicle model on the load side is established and the influence of its network access is analyzed. The voltage of the distribution network can be controlled by the cooperation of the schedulable electric vehicle resource and photovoltaic under certain circumstances. By considering the demand response of electric vehicle users and aiming at the optimal control cost of each controllable resource, the voltage regulation model of the distribution network linked by electric vehicle and photovoltaic power source is established and solved to achieve optimal utilization of energy resources in the distribution network, reducing voltage fluctuations. In the analysis of the example, two optimization scenarios are constructed according to different meteorological conditions, and the effectiveness of the strategy is verified.