Ophthalmology is the specialized field of medicine that focuses on the health of the eye. It includes the anatomy, physiology and diseases that may affect the eye. Historically, the science of ophthalmology encompassed all aspects of visual function, both in health and in illness.