Optics Diffraction Grating A diffraction grating is a type of optical device that is used to separate light into its different wavelengths.