Originally, high-resolution gratings were ruled using high-quality ruling engines whose construction was a large undertaking.
Another method for manufacturing diffraction gratings uses a photosensitive gel sandwiched between two substrates.