A connector (140) is provided with a holding component (141), a support component (148), a terminal (144) electrically connected to a contact of a guide wire (130) held by the holding component (141), and a guide component (147) rotatable around an axial line (130A) of the guide wire (130) with respect to the support component (148) . The holding component (141) is provided with a body (150) having an insertion hole (150a) for the guide wire (130) and a holding piece (151) extending along an axial line of the insertion hole (150a) from the body (150) and capable of being elastically deformed inward in a radial direction with respect to the axial line. The guide component (147) has a guide surface (165a) guiding the holding piece (151) inward in the radial direction. The holding component (141) is slid along the axis line of the insertion hole (150a) with respect to the guide component (147), whereby the holding piece abuts on the guide surface (165a) to be elastically deformed inward in the radial direction.