This paper discusses the nonlinear control of a Static Synchronous Compensator (STATCOM) used in transmission systems, specifically in a single machine infinite bus (SMIB) scenario. It presents a state space mathematical model and applies feedback linearization and linear quadratic regulation (LQR) to enhance system stability and control reactive power exchange. The effectiveness of the proposed nonlinear control strategy is demonstrated through simulations, showing superior performance compared to traditional PI controllers in stabilizing power system dynamics.