This paper presents a two-stage three-phase solar photovoltaic (PV) system, which is controlled through a novel enhanced second order generalized integrator (ESOGI) based control technique. The proposed ESOGI is used for fundamental component extraction from nonlinear load current and distorted grid voltages. This integrator effectively and simultaneously manages to address the DC offset, inter-harmonic and integrator delay problems of the traditional SOGI. In addition, this control technique provides power factor correction, harmonic elimination, and load balancing functionalities. The ESOGI controller is used to generate reference grid currents for controlling the voltage source converter (VSC), interfacing the PV panel with the grid. Extensive experimental results on a developed prototype in the laboratory, depict that the total harmonic distortion (THD) of the grid injected currents and voltages are found well under IEEE-519 standard. © 1986-2012 IEEE.