Light bends whenever it travels at an angle into a substance with a different refractive index (optical density). This change of direction is caused by a change in speed. For example, when light travels from air into water, it slows down, causing it to continue to travel at a different angle or direction.