Light and optical techniques have made profound impacts on modern medicine, with numerous lasers and optical devices being currently used in clinical practice to assess health and treat disease. Recent advances in biomedical optics have enabled increasingly sophisticated technologies — in particular those that integrate photonics with nanotechnology, biomaterials and genetic engineering. In this Review, we revisit the fundamentals of light–matter interactions, describe the applications of light in imaging, diagnosis, therapy and surgery, overview their clinical use, and discuss the promise of emerging light-based technologies.