A power system is a complex, nonlinear, and dynamic system, with operating parameters that change over time. Because of the complexity of big load lines and faults, high-voltage transmission power systems are usually vulnerable to transient instability concerns, resulting in power losses and increased voltage variation. This issue has the potential to cause catastrophic events such as cascade failure or widespread blackouts. This problem affects Ethiopia's high-voltage transmission power grid in the northwest area. Because of the increased demand for electrical energy, transmission lines' maximum carrying capacity should be enhanced to maintain a secure and uninterrupted power supply to consumers. To address the problem, ANFIS-based UPFC is used for high-voltage transmission lines. This device was chosen as the ideal alternative due to its capacity to rapidly correct reactive power on high-voltage transmission networks. The PSO algorithm was used to determine the best location for the UPFC. The ANFIS controller receives voltage error and rate of change of voltage error as inputs. Seventy percentage of the retrieved data are used for ANFIS training and 30% for ANFIS testing. To show the performance of the proposed controller, three-phase ground faults are used from a severity perspective. When a three-phase ground fault occurs at the midpoint of the Beles to Bahir Dar transmission line, for instance, the settling time of rotor angle deviation, rotor speed, rotor speed deviation, and output active power of synchronous generators using ANFIS-based UPFC is reduced by 70.58%, 37.75%, 37.75%, and 43.75%, respectively, compared to a system without UPFC. At peak load, PI-based UPFC and ANFIS-based UPFC reduce active power loss by 51.25% and 71.50%, respectively, compared to a system without UPFC on the Beles to Bahir Dar transmission line. In terms of percentage overshoot and settling time, ANFIS-based UPFC outperforms PI-based UPFC for transient stability enhancement.