An engine control device for controlling a cylinder direct fuel injection type spark ignition engine provided with a fuel injection valve configured to directly inject fuel into a cylinder and an ignition plug configured to perform spark ignition for a gas mixture inside the cylinder, an exhaust gas passage, and an exhaust gas purifying catalyst disposed in the exhaust passage, the device comprising a controller configured to: determine if warm-up of the exhaust gas purifying catalyst is required; perform, when the warm-up of the exhaust gas purifying catalyst is required, a catalyst warm-up operation in which a fuel injection by the fuel injection valve is performed in such a timing within a compression stroke of the engine that a fuel spray colliding with a piston crown surface moves toward the ignition plug along the shape of the piston crown surface, and in which the ignition timing of the ignition plug is retarded to a timing after compression top dead center; and estimate an amount of a liquid fuel remaining on the piston crown surface during the catalyst warm-up operation; characterized in that the controller is further configured to: advance a fuel injection timing of the fuel injection valve within the compression stroke according to an increase in the amount of the liquid fuel remaining on the piston crown surface during the catalyst warm-up operation; and switch the combustion mode of the internal combustion engine from the catalyst warm-up operation to a homogeneous stoichiometric combustion by advancing the fuel injection timing to a timing in an intake stroke of the engine when the amount of the liquid fuel remaining on the piston crown surface becomes larger than a threshold value set on the basis of an emission regulation value of an exhaust gas particulate matter. determine if warm-up of the exhaust gas purifying catalyst is required; perform, when the warm-up of the exhaust gas purifying catalyst is required, a catalyst warm-up operation in which a fuel injection by the fuel injection valve is performed in such a timing within a compression stroke of the engine that a fuel spray colliding with a piston crown surface moves toward the ignition plug along the shape of the piston crown surface, and in which the ignition timing of the ignition plug is retarded to a timing after compression top dead center; and estimate an amount of a liquid fuel remaining on the piston crown surface during the catalyst warm-up operation; characterized in that the controller is further configured to: advance a fuel injection timing of the fuel injection valve within the compression stroke according to an increase in the amount of the liquid fuel remaining on the piston crown surface during the catalyst warm-up operation; and switch the combustion mode of the internal combustion engine from the catalyst warm-up operation to a homogeneous stoichiometric combustion by advancing the fuel injection timing to a timing in an intake stroke of the engine when the amount of the liquid fuel remaining on the piston crown surface becomes larger than a threshold value set on the basis of an emission regulation value of an exhaust gas particulate matter. advance a fuel injection timing of the fuel injection valve within the compression stroke according to an increase in the amount of the liquid fuel remaining on the piston crown surface during the catalyst warm-up operation; and switch the combustion mode of the internal combustion engine from the catalyst warm-up operation to a homogeneous stoichiometric combustion by advancing the fuel injection timing to a timing in an intake stroke of the engine when the amount of the liquid fuel remaining on the piston crown surface becomes larger than a threshold value set on the basis of an emission regulation value of an exhaust gas particulate matter.