An object with periodic optical properties, e.g. grooves. Seperates light into its component wavelengths through the process of diffraction and interference.

Diffraction Grating Equation