How are we able to see nearby and also the distant objects clearly?

Human eye is able to see nearby and also the distant objects clearly using its power of accommodation.