When light shines on a photosensitive metal surface, which is negatively charged, electrons are ejected from the metal surface.
The animation shows the apparatus that can be used to observe the photoelectric effect.