The present invention provides an optical switch for restricting a
reduction in an optical coupling efficiency to an output optical path,
which comprises a first spectral unit, a second spectral unit for further
spectrally diffracting a plurality of wavelength components spectrally
diffracted in the first spectral unit, a plurality of movable mirrors
capable of reflecting the plurality of wavelength components spectrally
diffracted in the second spectral unit respectively and directing the
same in different directions, and a controller for compensating for
deviation angles relative to optical axes of the plurality of wavelength
components spectrally diffracted in the second spectral unit through
setting of angles of reflecting faces in the plurality of movable
mirrors.