An optical filter is a device that selectively transmits light of different wavelengths, often used to control the spectral composition of light in various applications. These filters can be used in photography, scientific instruments, and optical communication systems to enhance image quality or isolate specific wavelengths for analysis.