Optical sectioning enables precise 3D imaging by extracting signals in focus and eliminating out-of-focus backgrounds.