The document presents a study on the modeling and simulation of a Distribution Static Compensator (DSTATCOM) aimed at improving power quality in distribution networks by compensating for reactive power and harmonics caused by non-linear loads. It highlights the importance of addressing voltage dips, a prevalent power quality issue, and details the construction and control strategies of the DSTATCOM using MATLAB/Simulink for simulations. The results demonstrate the DSTATCOM's effectiveness in voltage regulation, load balancing, and power factor correction under different loading conditions.