With the large-scale development of offshore wind power and the rapid development of smart grid, more and more attention has been paid to the stable operation of wind turbines under various conditions. In the actual operation process of wind turbines, there are inevitably many kinds of uncertain time delays, and also external or parameter disturbances, which affect the stable operation of wind turbines and make the system deviate from the original stable state. Based on Hamiltonian energy theory, the disturbance rejection of doubly fed wind turbines with multiple time delays is studied in this paper. Firstly, the doubly fed wind turbine is Hamiltonian realized to obtain its port controlled Hamiltonian with dissipation(PCH-D) model. Then, aiming at the PCH-D model, a multiple time delays controller is designed based on Casimir function, which can make wind turbines run stably under multiple time delays. Furthermore, based on the passive control theory, L2 gain disturbance rejection control technology is introduced to eliminate the steady-state error caused by external disturbance and improve the stability of wind turbines. Finally, the simulation results show that the proposed controller can effectively solve the multiple time delays and disturbance problems in the system, and improve the stability and anti-interference of wind turbines. INDEX TERMS Offshore wind power, doubly fed wind turbines, multiple time delays, Hamiltonian energy theory, Casimir function, L2 disturbance attenuation.