A knock sensor is constructed by putting and fitting components including an annular piezoelectric element, terminal plate, insulating sheet and weight onto a base consisting of a flange portion and a tubular portion, forming a groove part on a tip outer circumferential surface of the tubular portion, fitting a stopper ring functioning to apply an axial preload to the components onto the tubular portion, and caulking fixedly the stopper ring and the tubular portion into the groove part.