In recent trends, hybrid renewable energy sources (HRES) provide a better solution to meet energy demand, maximizing the productivity of electricity network. Due to the above-mentioned features, several researchers have given more attention to PV-wind-based HRES systems. A stable energy supply must be added, including batteries, diesel generator (DG), to meet demand in the event of a grid failure. To meet the voltage unbalance in islanded mode, the sizes of DG have need to be selected sensibly and HRES requires additional energy storage. To examine the voltage unbalance problems of an islanded microgrid, a hybrid optimization approach known as moth flame optimization (MFO) and firebug swarm optimization (FSO) is introduced. Due to various loads, harmonic distortion causes the voltage to unbalance, which can result in voltage collapse. To deliver a quick response in an island mode, a comprehensive algorithm called MFO-FSO control is proposed. MATLAB software is used to validate the results which demonstrate that the proposed MFO-FSO outperforms the conventional decoupling double synchronous reference frame (DDSRF) methods by reducing total harmonic distortion (THD) up to 1.21% and voltage unbalance factor (VUF) up to 1.427%.