When light changes direction as it passes through a lens, it is called refraction. Refraction is the bending of light as it travels from one medium (e.g., air) to another medium (e.g., glass or water) with a different optical density. Lenses are designed to exploit the principle of refraction to focus or diverge light, depending on their shape and curvature.