Spectroscopy is a powerful tool used in astronomy to analyze the light emitted or absorbed by celestial objects. By dispersing light into its component wavelengths, astronomers can determine an object's composition, temperature, velocity, and other properties. Spectroscopy provides valuable insights into the chemical makeup of stars, galaxies, and interstellar gas clouds, helping astronomers understand the processes shaping the universe. It also enables the discovery of exoplanets and the study of their atmospheres, offering clues about their potential habitability and origins.