When the ciliary muscles are relaxed, the eye lens becomes thin. This results in the increase of the focal length, and distant objects are clearly visible to the eyes.
To see the nearby objects clearly, the ciliary muscles contract which makes the eye lens thicker. This results in reduction of focal length of the eye lens, and the nearby objects become visible to the eyes.
Therefore, the focal length can be adjusted by the human eye lens to view both distant and nearby objects on the retina. This ability of the eye refers to the power of accommodation of the eye.