Voltage source inverters (VSIs) are generally used to interface distributed generators (DGs) with the microgrid. The voltage quality of the network is controlled based on the reference voltage tracking strategy of the VSI. In this paper, a mathematical relationship of a combined PI controller for an inverter is derived for the instantaneous voltage tracking strategy, and its validity and robustness are demonstrated for both steady-state and transient conditions. The tuning of the proposed controller is performed with the aid of root locus analysis. Moreover, the importance of a voltage controller has been addressed; without voltage controller, voltage waveform in a network may be distorted due to nonlinear loads and hence the power quality of the network too. The performance of the proposed combined PI controller is found to be effective to track the instantaneous reference grid voltage . The simulation work is carried out with the aid of MATLAB/Simulink SimPowerSystems.