X-ray absorption spectroscopy (XAS) is a powerful technique used to determine the local geometric and electronic structure of matter by measuring the absorption of X-rays as a function of energy. It provides element-specific information and can probe the oxidation state, coordination environment, and chemical bonding of the absorbing atom in various materials, including solids, liquids, and gases.