An ophthalmologist is a medical doctor specializing in care of the eye.
Ophthalmologists spend four years in medical school, and after obtaining an M.D. degree, spend an additional four or more years studying diagnosis and treatment of eye disorders in residency.