This document proposes using a static compensator (STATCOM) connected to a battery energy storage system (BESS) to mitigate power quality issues from wind energy generation. Wind power fluctuates due to changing wind speed, which affects power quality. The STATCOM and BESS work together to absorb or inject reactive power and regulate real power flow to the load. Excess power generated during low demand hours can be stored in the batteries. This combination of battery storage and wind generation helps stabilize the output waveform and improve power quality at the point of common coupling.