According to growth of electricity demand and the increased number of non-linear loads in power grids, providing a high quality electrical power should be considered. In this paper, voltage sag and swell of the power quality issues are studied and distributed power flow controller (DPFC) is used to mitigate the voltage deviation and improve power quality. The DPFC is a new FACTS device, which its structure is similar to unified power flow controller (UPFC). In spite of UPFC, in DPFC the common dc-link between the shunt and series converters is eliminated and three-phase series converter is divided to several single-phase series distributed converters through the line. The case study contains a DPFC sited in a single-machine infinite bus power system including two parallel transmission lines, which simulated in MATLAB/Simulink environment. The presented simulation results validate the DPFC ability to improve the power quality.