An endoscope system includes an endoscope having an insertion portion. The endoscope is attached to the proximal end of the insertion portion. An image capturing module is attached to the distal-end portion of an insertion portion. The image capturing module includes a wiring board having a principal surface including first electrodes and second electrodes disposed thereon. An image capturing element includes respective photodetection and reverse surfaces. The reverse surface includes external electrodes and is connected to the first electrodes on the wiring board. A prism having an entrance surface to which light is applied, a reflection surface, and an exit surface in which the exit surface being bonded to the photodetection surface of the image capturing element. A support member is used to support the prism. A layered element including a plurality of elements is layered together and having an upper surface, a lower surface with element electrodes disposed thereon.