The ability of the eye lens to adjust its focal length to focus on objects at varying distances is called the power of accommodation.
Accommodation is achieved by the action of the ciliary muscles, which change the shape (and thus the curvature) of the flexible eye lens. When looking at nearby objects, the ciliary muscles contract, allowing the lens to become thicker and more curved, which decreases its focal length. When focusing on distant objects, the muscles relax, and the lens becomes thinner and less curved, increasing its focal length. This dynamic adjustment ensures that a clear image is always formed on the retina.