Ophthalmology is a branch of medicine specializing in the anatomy, function and diseases of the eye.