Gratings are essential components in different high performance optical set-ups such as spectrometers in space missions or ultrashort-pulse laser compression arrangements. Often such kinds of applications require gratings operating close to the technological accessible limits of today’s fabrication technology. Typical critical parameters are the diffraction efficiency and its polarization dependency, the wave-front error introduced by the grating, and the stray-light performance. Additionally, space applications have specific environmental requirements and laser application typically demand a high damage threshold. All these properties need to be controlled precisely on rather large grating areas. Grating sizes of 200 mm or even above are not unusual anymore. The paper provides a review on how such high performance gratings can be realized by electron-beam lithography and accompanying technologies. The approaches are demonstrated by different examples. The first example is the design and fabrication of the grating for the Radial-Velocity-Spectrometer of the GAIA-mission of the ESA. The second grating is a reflective pulse compression element with no wavelength resonances due to an optimized design. The last example shows a three level blazed grating in resonance domain with a diffraction efficiency of approximately 86 %.