A semiconductor optical switching device comprising passive optical input and output stages, each having respectively a plurality of inputs and outputs, and a matrix stage, one or more inputs being selectively-coupled to one or more outputs via the matrix stage to provide selective routing for optical signals input to the device, the material of the device in the matrix stage being at least in part active so that said selective routing can be controlled by control inputs to the matrix stage wherein the propagation direction of optical signals in both the input and output stages of the device is substantially the same, and said direction is substantially different from the propagation direction of optical signals in the active part of the matrix.