By employing a 2-dimensional diffraction grating it is possible to generate the configuration of laser beams required for a magneto-optical trap from a single laser beam and thus have a very compact magneto-optical trap.