Optical fibers work on the principle of total internal reflection (TIR). Light signals are sent down the core of the fiber. The core is surrounded by a cladding material with a lower refractive index. When light travelling in the core strikes the boundary between the core and cladding at an angle greater than the critical angle, it is reflected back into the core. This process repeats along the length of the fiber, effectively guiding the light signal with minimal loss.