It is the phenomenon that involves the reflection of all the incident light off the boundary.
It only takes place when both of the following two conditions are met:
The light is in the more dense medium and approaching the less dense medium.
The angle of incidence is greater than the so-called critical angle.
Total internal reflection will not take place unless the incident light is travelling within the more optically dense medium towards the less optically dense medium.