The use of electromagnetic radiation to study the properties of matter and to identify substances based on their spectra.