More pollutants for coal, oil, natural gas, and others, a viable alternative to sustainable and renewable energy sources, have increased significantly over the past decade. These can then be seen as the first step in the global movement to reverse the problems resulting from slow climate change. Therefore, in this work, use solar power source-based power quality improvement in a system. The main aim of this work is multi-level inverter associated UPQC for power quality enhancement. In this work, multi-level inverters are used in a series shunt controller for producing accurate sinusoidal wave shape. The series controller is connected to the grid side for grid power quality improvement. In this work, grid side voltage sag/swell was reduced by a series controller. The advantage of the proposed system is the high-efficiency enrichment of quality power. The MATLAB/Simulink environment verifies the simulated results of the proposed system.