The imaging unit 1 includes an imaging unit 20 in which a plurality of semiconductor elements 22 to 25 including an imaging element 22 are stacked, and a frame member 10 in which the imaging unit 20 passes through the hollow portion H10. The unit 20 has a first side 20S1 orthogonal to the main surface of the image pickup device and a second side 20S2 opposite to the first side 20S1, and four of the first side 20S1 of the imaging unit 20 Of the sides, two sides 20L1 and 20L2 orthogonal to the main surface of the imaging device are in contact with the inner surface of the frame member 10, and the second side surface 20S2 is not in contact with the inner surface of the frame member 10.撮像ユニット1は、撮像素子22を含む複数の半導体素子22~25が積層されている撮像ユニット20と、撮像ユニット20が、中空部H10を挿通している枠部材10と、を具備し、撮像ユニット20は、前記撮像素子の主面と直交する第1の側面20S1と第1の側面20S1と対向している第2の側面20S2とを有し、撮像ユニット20の第1の側面20S1の4辺のうちの前記撮像素子の前記主面と直交する2辺20L1、20L2は、枠部材10の内面に当接しており、第2の側面20S2は枠部材10の内面に当接していない。