A semiconductor diode is a device typically made from a single p-n junction.
Exposing a semiconductor to light can generate electron-hole pairs, which increases the number of free carriers and thereby the conductivity.