Power quality (PQ) is crucial in today's energy supply networks, where even little voltage fluctuations can have a big impact on how well household appliances and technologies operate. The suggested dynamic voltage regulator (DVR) approach helps to create a new generation power grid that is more dependable and effective. In this study, the honey badger optimizer (HBO) is used to optimize the controllers of the DVR for improving PQ via voltage control. The efficacy of the optimized DVR is further increased by its integration with a microgrid (MG) wind supply. The suggested technique makes use of a low-complexity control approach for voltage regulation to adjust for harmonic distortion, swells, and voltage dips in the addressed system. The technique accomplishes voltage improvement, bus stabilization, energy-efficient utilization, and harmonic distortion reduction by using the DVR in conjunction with an MG wind supply. Various voltage disturbances, such as balanced and unbalanced swell and sag, voltage imbalance, notching, various fault states, and power system harmonic distortion, are taken into consideration to show the approach's usefulness. The findings indicate PQ enhancement, demonstrating that the load voltage roughly matches the nominal value.