is photoelectric effect relates to light as wave motion or stream of particles or both

The photoelectric effect, discovered by Albert Einstein in 1905, relates to light as a stream of particles known as photons. When photons of sufficient energy strike a material surface, they can dislodge electrons from the atoms of the material, causing the emission of electrons. This phenomenon cannot be explained by classical wave theory, which led to the development of quantum mechanics to explain the dual nature of light as both a wave and a particle.