The change in the speed of light as it moves from one medium to another is the fundamental reason for refraction. The amount of bending is related to the refractive index of the media, which is defined based on the speed of light in the medium.