A wavelength division multiplexer (WDM) is a device used to combine or separate different wavelengths of light in an optical fiber. It works by allowing multiple different signals to be transmitted simultaneously over the same fiber, each at a different optical wavelength. This makes it possible to send multiple signals over a single optical fiber, drastically reducing the amount of physical cable needed for transmission.