This paper analysis the PCC voltage fluctuation from the perspective of active and reactive load, and points out that voltage flicker mitigation needs both active and reactive power compensation. Battery energy storage system designed by this paper adopts the current feed forward decoupling control, energy storage system after receive compensation instruction, fast response, send out a certain amount of reactive power and active power to compensate for voltage flicker. After building the simulation models and designing the control strategy of the BESS system, this paper carries on the simulation under the environment of SIMULINK and RT-LAB. The simulation results show that the proposed method can accurately detect voltage flicker frequency and amplitude and it can effectively weaken the negative influence of imbalance of the three-phase voltage. With the active and reactive power compensation of the battery energy storage system, it can get better compensation effect of voltage flicker.