Total internal reflection (TIR) occurs when a wave, such as light, hits a boundary between two mediums at an angle greater than a certain critical angle. This results in the wave being completely reflected back into the original medium rather than refracted into the second medium. This phenomenon has significant applications in various fields, including nanotechnology.