The process of accommodation involves changing the shape of the lens to focus on near or distant objects, with the ciliary muscles contracting to make the lens thicker and more curved when focusing on a near object, and relaxing to make the lens thinner when focusing on a distant object.