In this paper, the voltage of a distributed three-phase islanded ac microgrid (TPMG) under various load conditions is optimized by a high performance second order resonant controller with lead compensator. The proposed controller is designed to mitigate voltage oscillation caused by the nature of loads and non-linearity of converters. This controller is based on the concept of second order resonant controller with a feedback combination of lead compensator. The proposed controller shows high performance in terms of mitigating voltage oscillation, the effect of sudden load change, and the harmonic distortion. Moreover, the proposed controller ensures strict reference tracking and gives stable performance. Extensive simulation is performed to demonstrate the robustness of the proposed controller under different load conditions and the suitability of the controller is tested. A laboratory scale experiment validates the superiority of the proposed control technique.