The paper presents a novel modified grey wolf optimization algorithm for the optimal placement and sizing of distribution static compensators (DSTATCOM) in radial distribution systems to minimize power losses and improve voltage profiles. The method is applied to two test systems, demonstrating significant improvements in efficiency compared to existing optimization techniques. The findings affirm the effectiveness of the proposed approach in enhancing the performance of electrical distribution networks.