X-ray Photoelectron Spectroscopy (XPS) works by irradiating a surface with X-rays, causing the emission of photoelectrons. The kinetic energy of these photoelectrons is measured, and their binding energy is calculated. The binding energy is specific to each element and its chemical state, allowing for precise identification of the surface composition and chemical environment.