A wavelength selective optical switch of the present invention separates a
WDM light emitted from an input port of an input and output optical
system, according to wavelengths, by a diffraction grating, and
thereafter, condenses the lights of respective wavelengths on MEMS
mirrors respectively corresponding to the respective wavelengths, in a
mirror array, to reflect them by a condenser optical system, to thereby
switch optical paths for the respective lights. The condenser optical
system is configured by combining a plurality of lenses whose focal
distances are different from each other, and positions in an optical axis
direction of the lenses are adjustable by a slide mechanism. Thus,
despite an error in the focal distances of the condenser lenses, in a
mounting angle of a spectral element or the like, a beam pitch at the
condensing positions of the lights of respective wavelengths can be
coincident with a mirror pitch in the mirror array.