The photoelectric effect is a phenomenon in which electrons are emitted from a metal surface when it is illuminated by light. This effect is a direct consequence of the particle-like nature of light, where light is considered to consist of individual packets of energy called photons.
The photoelectric effect was first observed by German physicist Heinrich Hertz in 1887, but it was not fully explained until the early 20th century by Albert Einstein. In 1905, Einstein proposed that light could be viewed as a stream of particles, or photons, each with a specific amount of energy. He suggested that when a photon collides with an electron in a metal, it can transfer its energy to the electron and knock it out of the metal. This process is called the photoelectric effect.