When light travels from a denser medium to a rarer medium, if the angle of incidence is greater than the critical angle, total internal reflection occurs and the light ray returns to the denser medium rather than passing into the rarer medium. Total internal reflection is responsible for phenomena like the brilliance of diamonds, mirages, and the operation of optical fibers and prisms.