Optical fiber works on the principle of total internal reflection.
The Total Internal Reflection is the phenomenon in which the complete reflection of a light ray reaching an interface with a less dense medium when the angle of incidence exceeds the critical angle.