The phenomenon which causes the formation of mirage is known as
total internal reflection
The phenomenon which causes the formation of mirage is known as total internal reflection. When light goes from an optically denser to an optically rarer medium at an angle greater than the critical angle, TIR takes place. This causes the illusion of presence of water in deserts known as mirage.