Final answer:
Light changes direction when passing from one material to another due to a change in speed, known as refraction.
Step-by-step explanation:
When light passes from one material to another, it changes speed, and this change in speed causes the light beam to change direction. This phenomenon is known as refraction. The speed of light is different in different media because of their different refractive indices.