An eyepiece, also called an ocular lens, is the lens or combination of lenses closest to the eye in an optical device like a microscope or telescope. It magnifies the image formed by the objective lens. The amount of magnification depends on the focal length of the eyepiece. The two main types of eyepieces are Ramsden eyepieces and Huygens eyepieces, which differ in their lens configuration and optical properties like eye clearance and ability to incorporate crosshairs. Aberrations like spherical aberration, coma, astigmatism, curvature of field, and distortion arise from imperfections in real lens systems compared to ideal lenses.