Ophthalmology is the branch of medicine that deals with the anatomy, physiology, and diseases of the eye.