Solar cells are made of:

Because in semiconductors, the energy band gap is quite less. The photons can easily eject the electrons out of it provided the energy of the electrons is more than the threshold energy required.

32