A control device for an internal combustion engine, comprising: wall temperature parameter acquisition means for acquiring a cylinder wall temperature (t) of an internal combustion engine or a parameter corresponding to the cylinder wall temperature (t) as a wall temperature parameter (t, t W) cylinder wall temperature varying means that is capable of changing the cylinder wall temperature (t); pre-ignition temperature region storage means in which a pre-ignition suppression temperature region in which a pre-ignition occurrence frequency decreases more than in a peripheral temperature region is previously stored, the pre-ignition suppression temperature region being a temperature region that is set based on a relation between a pre-ignition occurrence frequency and the cylinder wall temperature (t); and cylinder wall temperature control means for, in a case where an actual operating region that is a region in which the internal combustion engine is actually operating is within a predetermined pre-ignition susceptibility operating region, performing control using the cylinder wall temperature varying means so that the wall temperature parameter (t, tw) falls within the pre-ignition suppression temperature region; wherein the cylinder wall temperature control means is configured to raise the wall temperature parameter (t, t W) in a case where the wall temperature parameter (t, t W) is lower than the pre-ignition suppression temperature region, and configured to decrease the wall temperature parameter (t, t W) in a case where the wall temperature parameter (t, t W) is higher than the pre-ignition suppression temperature region. wall temperature parameter acquisition means for acquiring a cylinder wall temperature (t) of an internal combustion engine or a parameter corresponding to the cylinder wall temperature (t) as a wall temperature parameter (t, t W) cylinder wall temperature varying means that is capable of changing the cylinder wall temperature (t); pre-ignition temperature region storage means in which a pre-ignition suppression temperature region in which a pre-ignition occurrence frequency decreases more than in a peripheral temperature region is previously stored, the pre-ignition suppression temperature region being a temperature region that is set based on a relation between a pre-ignition occurrence frequency and the cylinder wall temperature (t); and cylinder wall temperature control means for, in a case where an actual operating region that is a region in which the internal combustion engine is actually operating is within a predetermined pre-ignition susceptibility operating region, performing control using the cylinder wall temperature varying means so that the wall temperature parameter (t, tw) falls within the pre-ignition suppression temperature region; wherein the cylinder wall temperature control means is configured to raise the wall temperature parameter (t, t W) in a case where the wall temperature parameter (t, t W) is lower than the pre-ignition suppression temperature region, and configured to decrease the wall temperature parameter (t, t W) in a case where the wall temperature parameter (t, t W) is higher than the pre-ignition suppression temperature region.