Z-source inverters are used in controller applications, which offer higher performance than the buck-boost converter. This work presents the Improved Embedded Z (IEZ)-source inverter used for the impedance network. The Z-source inverter includes the switching topologies, so the double inductor is added to the EZ source inverter circuit. IEZ source inverter manages the Total Harmonic Distortion (THD), and the PID controller controls the inverter voltage. The Social Ski Driver (SSD) Optimization algorithm is used to tune the parameters of the PID controller. The harmonic content of the Z-source inverter is reduced by the carrier based sinusoidal Pulse Width Modulation (SPWM) technique. The Improved Embedded Z-source Inverter (IE-ZSI) is utilized to apply a grid-connected system. The inverters receive the power from the DC voltage and supply the grid-connected load with controllable voltage. The proposed work is implemented in the platform MATLAB/SIMULINK to evaluate the performance of the voltage across the capacitor, the voltage across the inductor, grid current and grid voltage. Inverter DC link voltage performance was compared to conventional Z-source inverters and embedded Z-source inverters. The proposed work achieved 1.52% THD compared with existing techniques.