The document presents a study on the design and simulation of a three-phase shunt active power filter (SAPF) to reduce harmonic distortion and improve power quality in electrical distribution systems using MATLAB/Simulink. It outlines the negative impacts of harmonics on electrical equipment and the superiority of active filters over passive filters in mitigating these issues. The findings indicate that the SAPF effectively compensates for harmonics and reactive power, achieving a significant reduction in total harmonic distortion from 20.49% to 0.53%.