Power quality is the primary issue to be taken into consideration in modern electrical systems, particularly on the distribution side, to protect sensitive loads. Long-term uses can never run out of renewable resources. Connecting STATCOM at the distribution side enhances the power factor by improving the quality of the current waveform. The reactive power range that needs adjustment by utilising PV arrays on the STATCOM's DC side. Increases due to the large rise in terms of the PV power plants' size and capacity. Cascaded H Bridge multilevel topologies can increase the flexibility and effectiveness of PV modules. The suggested approach in this paper gives outcome of reduced peak over shoot, rise time, settling time, steady state error, percentage of ripples and total harmonic distortion which improves the power quality. PV system with cascaded H bridge multilevel inverters STATCOM for harmonic suppression and to make reactive powerless. To produce modulation indices for H Bridge switching, synchronised reference frame theory is modified. H bridges' average DC voltage is managed by a PI controller, and controller gains are obtained using fuzzy, PSO, and the trial-and-error approach. To confirm the viability of the suggested approach, simulation results using MATLAB/SIMULINK are shown. The experimental setup of proposed method is carried out to validate the inverter response.