An ophthalmologist is a medical doctor for the eyes. People see one for blurry vision, red or painful eyes, eye injuries, cataracts, and regular checks for glaucoma or diabetes-related eye problems. They can also do eye surgery, which an optometrist cannot.
For a simple eyeglass grade, an optometrist is usually enough; for anything else, pick an eye doctor near you or book an ophthalmologist online.
Related specialties: Neurology, Endocrinology, Internal Medicine.