The increase in renewable energy sources (RESs) in power systems is causing significant changes in their dynamic behavior. To ensure the safe operation of these systems, it is necessary to develop new methods for preserving transient stability that follow the new system dynamics. Fast-response devices such as flexible AC transmission systems (FACTSs) can improve the dynamic response of power systems. One of the most frequently used FACTS devices is the Static Var Compensator (SVC), which can improve a system’s transient stability with a proper control strategy. This paper presents a reactive power control strategy for an SVC using synchronized voltage phasor measurements and particle swarm optimization (PSO) to improve the transient stability of a multimachine power system. The PSO algorithm is based on the sensitivity analysis of bus voltage amplitudes and angles to the reactive power of the SVC. It determines the SVC reactive power required for damping active power oscillations of synchronous generators in fault conditions. The sensitivity coefficients can be determined in advance for the characteristic switching conditions of the influential part of the transmission network, and with the application of the PSO algorithm, enable quick and efficient finding of a satisfactory solution. This relatively simple and fast algorithm can be applied in real time. The proposed control strategy is tested on the IEEE 14-bus system using DIgSILENT PowerFactory. The simulation results show that an SVC with the proposed control strategy effectively minimizes the rotor angle oscillations of generators after large disturbances.