An optical component containing a periodic structure of multiple closely spaced parallel slits or grooves that are used to disperse light. Gratings are commonly used in monochromators and spectrometers.
They are used in spectroscopy to analyse light from stars and other celestial bodies.