When light traveling in a medium with a higher refractive index hits the boundary at an angle greater than the critical angle, total internal reflection occurs. At this point, the evanescent wave is generated in the medium with a lower refractive index. This wave extends only a short distance beyond the interface, typically on the order of the wavelength of the light being used.