Photoelectron spectroscopy is based on the photoelectric effect, where photons eject electrons from a material. By measuring the kinetic energy of these electrons, one can infer the binding energy levels and deduce the electronic structure of atoms or molecules.