A knocking detection method of detecting occurrence of knocking in a combustion chamber of an internal combustion engine, the method comprising: a step of obtaining an oscillation waveform generated by combustion of air-fuel mixture in the combustion chamber; a step of setting a first time window preceding a maximum inner pressure time at which an inner pressure of the combustion chamber is at maximum in a single combustion cycle and a second time window immediately after the maximum inner pressure time, and transforming each of a first waveform portion included in the first time window and a second waveform portion included in the second time window into a frequency-domain expression, of the oscillation waveform; and a step of setting a first frequency window and a second frequency window, calculating a first representative value which is a representative value of the frequency domain expression of the first waveform portion in the first frequency window and a second representative value which is a representative value of the frequency domain expression of the second waveform portion in the second frequency window, and determining whether knocking has occurred on the basis of a relationship between the second representative value and the first representative value, wherein the first representative value includes a first peak value at which an amplitude of the frequency domain expression of the first waveform portion is at maximum in the first frequency window, wherein the second representative value includes a second peak value at which an amplitude of the frequency domain expression of the second waveform portion is at maximum in the second frequency window, and wherein the step of determining whether knocking has occurred includes determining whether knocking has occurred on the basis of a relationship between the second peak value and the first peak value. a step of obtaining an oscillation waveform generated by combustion of air-fuel mixture in the combustion chamber; a step of setting a first time window preceding a maximum inner pressure time at which an inner pressure of the combustion chamber is at maximum in a single combustion cycle and a second time window immediately after the maximum inner pressure time, and transforming each of a first waveform portion included in the first time window and a second waveform portion included in the second time window into a frequency-domain expression, of the oscillation waveform; and a step of setting a first frequency window and a second frequency window, calculating a first representative value which is a representative value of the frequency domain expression of the first waveform portion in the first frequency window and a second representative value which is a representative value of the frequency domain expression of the second waveform portion in the second frequency window, and determining whether knocking has occurred on the basis of a relationship between the second representative value and the first representative value, wherein the first representative value includes a first peak value at which an amplitude of the frequency domain expression of the first waveform portion is at maximum in the first frequency window, wherein the second representative value includes a second peak value at which an amplitude of the frequency domain expression of the second waveform portion is at maximum in the second frequency window, and wherein the step of determining whether knocking has occurred includes determining whether knocking has occurred on the basis of a relationship between the second peak value and the first peak value.