Refraction is the bending of light as it passes from one medium to another, due to a change in its speed. This phenomenon is responsible for various optical effects, such as the apparent bending of objects submerged in water and the formation of rainbows.