The lens, by changing shape, functions to change the focal distance of the eye so that it can focus on objects at various distances.