An optical component that splits light into different wavelength, using the diffraction effect. Its surface is covered by a regular pattern of parallel lines, typically separated from a distance comparable to the wavelength of light.
Diffraction gratings are often used in spectrometers and wavelength division multiplexing devices.