Optical fibers transmit light between their ends and are used for fiber optic communications. They work by the principle of total internal reflection, where light that hits the boundary between the higher-refractive index core and lower-refractive index cladding at an angle greater than the critical angle is reflected within the core rather than passing through. This confinement of light allows it to be transmitted along the length of the fiber with low loss.