Myopia is caused by an eyeball that is too long, causing light rays (and the image data it contains) to fall in front of the retina.