Myopia, or nearsightedness, occurs when the distance between the front and back of the eye is too great or the cornea has too much curvature. This causes incoming light to reach a focal point before it hits the retina, causing distant objects to appear out of focus.