A control device for an internal combustion engine, comprising: a knock control system configured to calculate a KCS learned value according to presence or absence of knocking of the internal combustion engine such that the KCS learned value is increased when the knocking occurs and is decreased when the knocking does not occur, the knock control system configured to calculate an ignition crank angle based on the KCS learned value, the knock control system configured to ignite a spark plug of the internal combustion engine at an ignition crank angle obtained by retarding the ignition crank angle in response to an occurrence of the knocking; a cooling system (30; 16, 30) configured to cool the internal combustion engine; and an electronic control unit configured to supply a command value corresponding to a target value of a cooling parameter to the cooling system (30; 16, 30) such that the cooling system (30; 16, 30) performs cooling of the internal combustion engine according to the command value, the electronic control unit configured to correct the command value based on the KCS learned value such that as the KCS learned value increases, a correction amount for correcting the command value increases by the correction amount in a direction in which a cooling capacity of the cooling system (30; 16, 30) increases, the control device being characterized in that the electronic control unit is configured not to correct the command value when a number of updates to the KCS learned value according to the presence or absence of the knocking is less than a predetermined value, and is configured to correct the command value when the number of updates to the KCS learned value is greater than or equal to the predetermined value, and wherein the internal combustion engine includes a first cooling system that mainly cools a cylinder block of the internal combustion engine and a second cooling system that mainly cools a periphery of an intake port compared to the first cooling system, the first cooling system and the second cooling system respectively include cooling medium flow passages independent of each other, and the electronic control unit is configured to supply the command value to the second cooling system. a knock control system configured to calculate a KCS learned value according to presence or absence of knocking of the internal combustion engine such that the KCS learned value is increased when the knocking occurs and is decreased when the knocking does not occur, the knock control system configured to calculate an ignition crank angle based on the KCS learned value, the knock control system configured to ignite a spark plug of the internal combustion engine at an ignition crank angle obtained by retarding the ignition crank angle in response to an occurrence of the knocking; a cooling system (30; 16, 30) configured to cool the internal combustion engine; and an electronic control unit configured to supply a command value corresponding to a target value of a cooling parameter to the cooling system (30; 16, 30) such that the cooling system (30; 16, 30) performs cooling of the internal combustion engine according to the command value, the electronic control unit configured to correct the command value based on the KCS learned value such that as the KCS learned value increases, a correction amount for correcting the command value increases by the correction amount in a direction in which a cooling capacity of the cooling system (30; 16, 30) increases, the control device being characterized in that the electronic control unit is configured not to correct the command value when a number of updates to the KCS learned value according to the presence or absence of the knocking is less than a predetermined value, and is configured to correct the command value when the number of updates to the KCS learned value is greater than or equal to the predetermined value, and wherein the internal combustion engine includes a first cooling system that mainly cools a cylinder block of the internal combustion engine and a second cooling system that mainly cools a periphery of an intake port compared to the first cooling system, the first cooling system and the second cooling system respectively include cooling medium flow passages independent of each other, and the electronic control unit is configured to supply the command value to the second cooling system.