Endoscopes use bundles of optical fibers to transmit light and images from inside the body to the physician. Optical fibers work based on the principle of total internal reflection (TIR). Light entering the fiber core strikes the boundary between the core and the cladding (which has a lower refractive index) at an angle greater than the critical angle. This causes the light to be reflected back into the core, and this process repeats along the length of the fiber, allowing light to be guided even around curves.