An imaging unit includes: an imaging element including a light receiver and a connection terminal formed on a back surface of the imaging element; a flexible printed circuit board including a connection electrode forming region, a cable connection electrode forming region, and a bent portion provided between the connection electrode forming region and the cable connection electrode forming region; and sealing resin filled around a junction between the imaging element and the flexible printed circuit board. The bent portion includes: a first bent portion that is bent toward the imaging element from the connection electrode forming region located parallelly to the light receiver of the imaging element; and a second bent portion that is provided continuously with the first bent portion and lets the cable connection electrode forming region extend in a direction opposite to a direction toward the imaging element.