The document discusses a system designed to enhance power quality in grid-connected photovoltaic systems by combining a Unified Power Quality Conditioner (UPQC) with a photovoltaic array. This system utilizes both series and shunt inverters, controlled by Proportional Integral (PI) and fuzzy logic controllers, to mitigate voltage and current issues such as harmonics and interruptions. The proposed strategy demonstrates improved performance in both interconnected and islanding modes, maximizing the effective use of renewable energy sources.