An optical multiplexer/demultiplexer with an improved spectral characteristic is provided by two diffraction gratings (61, 60) arranged optically in tandem, the gratings being arranged to provide free spectral ranges differing by a factor of at least two, and having a coupling between them that carries over into the second grating information concerning the dispersion afforded by the first grating.