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 injects reactive power from the BESS to absorb harmonic current and regulate voltage. This improves power quality by making the source current harmonic-free and stabilizing the system voltage. The combination of BESS and STATCOM helps compensate for wind power fluctuations and produces higher quality power from the wind generation system.