The document reviews Flexible AC Transmission Systems (FACTS) and distributed FACTS (D-FACTS) technologies, highlighting their role in improving power quality, energy utilization, and efficient management in electrical grids. It discusses literature on various FACTS devices and introduces the Enhanced Power Flow Controller (EPFC) and the Distributed Power Flow Controller (DPFC) as cost-effective solutions for power flow control. Additionally, the paper addresses the challenges and solutions regarding power quality issues in microgrids, including reactive power compensation strategies.