Power quality refers to the quality of electrical energy in a power system. The ideal electrical energy should be a perfectly symmetrical sine wave. Some factors will cause the waveform to deviate from the symmetric sine, which will cause the problem of power quality. On the one hand, we study the factors that cause power quality problems. On the other hand, we study what aspects of these factors lead to problems. Finally, we study how to eliminate these factors so that the electrical energy is close to the sine wave to the greatest extent possible.