X-ray Absorption Spectroscopy (XAS) is a powerful technique used to probe the electronic structure of materials, including those at the nanoscale. This method involves measuring the absorption of X-rays as their energy is varied across the characteristic absorption edges of the elements present in the sample. XAS provides detailed information about the local atomic structure, oxidation states, and even the electronic environment of the atoms.