When viewing distant objects, the ciliary muscle relaxes, causing the zonule fibers to pull the lens into a flatter shape. Conversely, when focusing on nearby objects, the ciliary muscle contracts, reducing tension on the zonule fibers and allowing the lens to become more rounded. This change in lens shape adjusts the focal length, enabling clear vision at different distances.