In order to solve the problem of power quality, such as excessive harmonics, voltage deviation and three-phase imbalance in distribution network, This paper presents a control strategy based on the redundant capacity of the distributed PV inverter to realize the comprehensive compensation function of reactive power, harmonics and negative sequence. A method is proposed to realize the control of the inverter without affecting the power generation of the normal PV inverter Power Quality Integrated Management (DG-FACTS) method. Firstly, the algorithm of harmonic detection, reactive power instruction extraction and unbalanced component detection for DG-FACTS is analyzed. Then, the instruction synthesis and current tracking control algorithm is studied, and the function of DG-FACTS is verified by simulation based on Matlab/Simulink. Results of simulation show that the proposed method of comprehensive compensation of power quality based on distributed PV inverter has good practicability.