OCT employs light waves to capture detailed images from within the retina. During the procedure, a beam of light is focused on the retina, and the reflections are measured to create images of the retina's layers. This allows for high-resolution visualization of the retina and can reveal microscopic changes that are not visible through other imaging techniques.