An internal combustion engine, comprising: an oxygen concentration sensor that is provided in an exhaust passage, and is in an active state at a first temperature which is lower than a particulate matter PM combustion temperature and is set in advance, and a second temperature which is equal to or higher than the PM combustion temperature and is set in advance; and a control device is configured to execute PM detection control that detects PM based on an output value of the oxygen concentration sensor, wherein the PM detection control is configured to (i) acquire one output value of a first output value and a second output value, the first output value of the oxygen concentration sensor being acquired at a time of the oxygen concentration sensor being at the first temperature, and a second output value of the oxygen concentration sensor being acquired at a time of the oxygen concentration sensor being at the second temperature, (ii) acquire the other output value of the first output value and the second output value after acquiring the one output value, (iii) detect PM based on a difference between or a ratio of the first output value and the second output value, wherein the second output value is acquired at a same time as the oxygen concentration sensor reaches the second temperature, or at a time when a predetermined time period which is set in advance elapses after a temperature rise of the oxygen concentration sensor to the second temperature occurs. an oxygen concentration sensor that is provided in an exhaust passage, and is in an active state at a first temperature which is lower than a particulate matter PM combustion temperature and is set in advance, and a second temperature which is equal to or higher than the PM combustion temperature and is set in advance; and a control device is configured to execute PM detection control that detects PM based on an output value of the oxygen concentration sensor, wherein the PM detection control is configured to (i) acquire one output value of a first output value and a second output value, the first output value of the oxygen concentration sensor being acquired at a time of the oxygen concentration sensor being at the first temperature, and a second output value of the oxygen concentration sensor being acquired at a time of the oxygen concentration sensor being at the second temperature, (ii) acquire the other output value of the first output value and the second output value after acquiring the one output value, (iii) detect PM based on a difference between or a ratio of the first output value and the second output value, (i) acquire one output value of a first output value and a second output value, the first output value of the oxygen concentration sensor being acquired at a time of the oxygen concentration sensor being at the first temperature, and a second output value of the oxygen concentration sensor being acquired at a time of the oxygen concentration sensor being at the second temperature, (ii) acquire the other output value of the first output value and the second output value after acquiring the one output value, (iii) detect PM based on a difference between or a ratio of the first output value and the second output value, wherein the second output value is acquired at a same time as the oxygen concentration sensor reaches the second temperature, or at a time when a predetermined time period which is set in advance elapses after a temperature rise of the oxygen concentration sensor to the second temperature occurs.