To improve power performance while avoiding or suppressing surging, an
engine control device comprises a VVT mechanism for varying the
open/close timing of an intake valve, and the occurrence of surging is
determined by comparing an engine rotation variation width with a surge
determination threshold. When it is determined that surging has occurred,
an ignition timing surge correction amount is set at a value that has
been corrected in an advancement direction, and the ignition timing is
corrected in the advancement direction by the ignition timing surge
correction amount. Further, a VVT surge correction amount by which the
open/close timing of the intake valve is corrected using the intake VVT
mechanism is set at a value that has been corrected in a retardation
direction, and a control current value for operating the intake VVT
mechanism is corrected in the retardation direction by the VVT surge
correction amount.