Introduction. The major source of energy for a long time has been fossil fuels, however this has its drawbacks because of their scarcity, exhaustibility, and impossibility of reusing them. Presently, a shunt active harmonic filter-equipped two-stage solar photovoltaic system is showing off its performance shunt active harmonic filter. The global power system has been impacted by current harmonics during the most modern industrial revolution. Novelty. The proposed work is innovative, by adopting the hysteresis modulation mode with Z-source inverter to enhance the performance of the system. Furthermore, the shunt active harmonic filter also get assists in this system for better improvement in the quality of power. Purpose. By incorporating an impedance source inverter and a photovoltaic shunt active harmonic filter methods, harmonic issues are mitigated. Methods. Load compensation is one of the services that the shunt active harmonic filter offers, in addition to harmonic compensation, power factor correction, and many other functions. The current pulse width modulation voltage source inverter method is more expensive, requires two converters owing to its two-stage conversion, has significant switching losses, and has a low rate of the reaction. The new model, in which the voltage source inverter is substituted out for a Z-source inverter converter, has been developed in order to address the problems of the existing system. Results. Rather than using a hybrid of DC-DC and DC-AC converters, the suggested system uses a shunt active harmonic filter that is powered by a photovoltaic source using a Z-source inverter. Utilizing Z-source inverter helps to address the present issues with conventional configurations. Practical value. By using software MATLAB/Simulink, this photovoltaic shunt active harmonic filter technique is analyzed. Shunt active harmonic filter, which produces compensatory current from the reference current obtained as from main supply, is powered by the photovoltaic array.