Multilevel Inverter (MLI) has lately emerged as a very significant option in the areas of energy regulation with high-intensity medium voltage. It consists of number of advantages; however, despite of its benefits, its performance is majorly affected due to the presence of harmonics. Numerous approaches have been presented in literature to reduce the harmonic distortion in MLIs. However, it has been analysed that they did not yield effective results as they consists of certain limitations. Therefore, to overcome the previous limitations and to efficiently reduce the harmonics from MLIs, a novel approach is proposed in this work. In the proposed work, moth flame optimization (MFO) approach is implemented. The main purpose of designing the novel approach is to remove the harmonic distortion and selective harmonic of 5th, 7th and 11th order in MLIs and achieve better results. This proposed approach is implemented in the MATLAB environment to analyse its performance. Also, the comparative analysis is performed between proposed approach and previous approaches in terms of THD. And all the obtained results of simulation demonstrate the efficacy of proposed approach over conventional ones.