What is the cause of refraction of light when it passes from one medium to another?
When a ray of light travels obliquely from one optical medium to another, the direction of propagation of light in the 2nd medium changes. This is known as the refraction of light. This is due to the change in the speed of light as we travel from one optical medium to another.