When light passes from one medium to another at an angle, it bends due to the change in speed. The amount of bending depends on the optical density of the materials, with less dense materials like air bending light less than denser materials like water, glass, and diamond. Common examples of refraction include sticks appearing bent in water, fish appearing higher than they are, and mirages forming on hot roads.