Harmonic amplification presents a significant challenge in power system networks, often leading to power quality degradation. This study aims to address and mitigate the impact of such harmonic disturbances. A novel control strategy based on artificial intelligence (AI) is introduced and integrated into a Distribution Static Synchronous Compensator (DSTATCOM). As a type of Flexible AC Transmission System (FACTS) device, the DSTATCOM provides efficient reactive power compensation, playing a key role in suppressing or minimizing harmonic amplification within the network. The performance and effectiveness of the proposed approach are validated through simulations carried out in the MATLAB/Simulink environment.