Light changes direction when passing from one medium to another due to refraction. Refraction is the bending of light that occurs when light travels from one medium into another at a different density, with the angle of refraction always being smaller than the angle of incidence, causing light to bend toward the normal. The refractive index determines the amount of bending of light due to the changing propagation speed in different materials.