An optical fiber scanner including: an optical fiber that guides illumination light; a piezoelectric element that is disposed at an intermediate position on the optical fiber in the long-axis direction and that displaces, due to a bending vibration, an emission end of the optical fiber in a direction intersecting the long axis; a wiring part that is electrically bonded to the piezoelectric element at a location between the piezoelectric element and the optical fiber; a tube-shaped electrically conductive frame that has an inner hole for accommodating the piezoelectric element and the optical fiber; and a holding section that fixes the frame and the piezoelectric element and that conducts electricity between the frame and the piezoelectric element.