Introduction: This paper addresses the ongoing challenge of harmonics reduction in power systems, particularly focusing on Flexible AC Transmission Systems (FACTS) devices. Instead of employing a conventional multilevel converter, an alternative configuration is proposed: a 36-pulse gate turn-off thyristor-based converter (GTO-VSC). This converter comprises three 12-pulse Voltage Source Converters (VSCs) as fundamental units, operating collectively on the frequency mode of GTO switching control within a Distribution Static Synchronous Compensator (D-STATCOM). The D-STATCOM dynamically compensates reactive power in the system. The 36-pulse configuration results in AC output voltage waveforms containing harmonics such as the 35th, 37th, 71st, 73rd, etc., leading to higher total harmonic distortion (THD) levels. background: Reduced number of switches in flexible AC transmission. Method: In response, the paper presents a new model featuring a 3-level, 36-pulse, 25kV, ±3MVAr STATCOM configured with 12-pulse GTO-VSCs. This model incorporates PWM gate switching and employs a PI-control methodology to optimize harmonics in simulation, specifically targeting harmonics at the 35th, 37th, 71st, 73rd, etc., orders using Sim Power Systems toolbox in Math Works software. Result: The compensator's operational performance is controlled through switching angle optimization, which minimizes harmonics, regulates voltage, and manages reactive power in the electrical transmission system. Conclusion: The simulation results demonstrate that the proposed model is acceptable for enhancing the flexibility and performance of the FACTS device in mitigating harmonics in power systems.