Optical fibers transmit light through total internal reflection, a phenomenon that occurs when light travels through a denser medium (core) and strikes the boundary with a less dense medium (cladding) at an angle greater than the critical angle. This causes the light to reflect back into the core rather than refracting out, allowing transmission over long distances with minimal loss.