The science of generating, controlling, and detecting photons, particularly in the visible and near-infrared light spectrum.