This study presents a hybrid genetic algorithm and ant colony algorithm for the optimal placement of D-STATCOM to reduce power system losses. Utilizing an IEEE 30-bus model, the study demonstrates that the method effectively minimizes losses by optimizing the location and reactive power generation of D-STATCOMs, achieving a significant reduction in net losses. The results confirm the algorithm's performance, enhancing both the voltage profile and overall power quality.