A coordinated optimal control method of reactive load between var compensators (SVC/SVG) and inverters is proposed in this paper, considering reactive power and adjustable margin remain of various reactive power sources (SVC/SVG, inverters) in distributed photovoltaic power stations. Based on AVC system, current total reactive power and the reactive power and adjustable margin remain of all reactive power sources is achieved firstly. According to the specific optimal control principle, the reactive power is adjusted to achieve optimal allocation of reactive power between var compensators and inverters. Finally, a voltage control system based on AVC is proposed in photovoltaic generation stations. After ensuring the voltage stability of net-connection point, the reactive compensation capacity of inverters can be fully used and the reactive power of var compensators can be reduced, to reduce the power consumption of var compensators in distributed photovoltaic power stations.