The change of direction of propagation of any wave, such as an electromagnetic wave, when it passes from one medium to another in which the wave velocity is different. Simply put, the bending of incident rays as they pass from one medium to another, such as air to water.