An imaging module includes: an electrical cable; an imaging device; and a flexible wiring board with wirings electrically connecting the imaging device with the electrical cable. The flexible wiring board includes: a device mounting portion on which the imaging device is mounted, and one end of the device mounting portion in a longitudinal direction has a bent portion; and a rear portion that bends and extends from the bent portion to a side opposite the imaging device. The device mounting portion has a mounting surface intersecting an axial direction of a distal end of the electrical cable, and the imaging device is mounted on the mounting surface, and the wirings extend from the mounting surface, pass through the bent portion, and connect with the electrical cable at the rear portion.