A coordinated controller for generator excitation and STATCOMs is studied based on the Hamiltonian function method. The Hamiltonian realization structure for multimachine power systems including STATCOMs is developed leading to a proposed coordinated scheme of excitation control and STATCOM control. Simulation results illustrate the effectiveness of the proposed control strategy