A method of manufacturing an optical element including the steps of:
forming a through hole in a semiconductor element which has an optical
section and an electrode electrically connected to the optical section;
and forming a conductive layer extending from a first surface of the
semiconductor element on which the optical section is formed, through an
inner wall surface of the through hole, to a second surface opposite to
the first surface.