Refraction is the bending of light as it passes from one transparent substance to another. This bending occurs because light travels at different speeds in different mediums.
When light passes from one medium to another, such as from air to water or from air to glass, its speed changes. This change in speed causes the light to bend, resulting in refraction.
Some common examples of refraction include the bending of a straw in a glass of water, the apparent bending of a pencil placed in a glass of water, and the formation of rainbows when light passes through water droplets in the atmosphere.