The photoelectric effect is the emission of electrons when electromagnetic radiation, such as light, hits a material. Einstein's explanation involved the idea that light energy is quantized into discrete packets called photons.