With a large number of electric vehicles connected to the power grid, how to improve the quality of power fed into the grid has attracted the attention of scholars. This article investigates a vehicle-to-grid (V2G) system based on a double second-order generalized integrator phase-locked loop (DSOGI-PLL). It can effectively suppress harmonics, track grid phase quickly, realize unit power factor grid connection, and has smaller total current harmonic distortion (THD). Firstly, the structure of V2G system is introduced, and the mathematical model of inverter is established. Then, for the mathematical model in the d-q synchronous coordinate system, the PI control strategy is analyzed and the controller is designed by using the grid voltage feedforward decoupling scheme. The system simulation model is established based on MATLAB / Simulink, and the simulation and experimental results are given to verify the validity of the model and the effectiveness of the control strategy.