This paper summarizes the main problems and solutions of power quality in microgrids, distributed-energy-storage systems, and ac/dc hybrid microgrids. First, the power quality enhancement of grid-interactive microgrids is presented. Then, the cooperative control for enhance voltage harmonics and unbalances in microgrids is reviewed. Afterward, the use of static synchronous compensator (STATCOM) in grid-connected microgrids is introduced in order to improve voltage sags/swells and unbalances. Finally, the coordinated control of distributed storage systems and ac/dc hybrid microgrids is explained.