A spectrograph is an instrument that separates light into its different wavelengths, allowing scientists to analyze the composition and properties of the source emitting the light. It can provide valuable information about the chemical elements present, temperature, density, and motion of celestial objects.