The semiconductor device according to this invention is characterized by a
package structure of a semiconductor substrate 100 equipped with a
photoelectric converting portion, wherein a light-shading means 104 is
arranged in an area corresponding to at least the photoelectric
converting portion on the side of the rear surface of the semiconductor
substrate.