A human eye can focus objects at different distances by adjusting the focal length of the eye lens. This is due to:

Accommodation is the ability or property of the eye lens to change its focal length so that images of objects at various distances can be formed on the same retina. Ciliary muscles help in changing the accommodation.

2