Total internal reflection is the phenomenon of reflection of light into a denser medium from an interface of the denser medium and the rarer medium. Two essential conditions for total internal reflection: Incident ray should travel in the denser medium and refracted ray should travel in the rarer medium.
The angle of incidence (i) should be greater than the critical angle for the pair of media in contact.
The relation between refractive index and critical angle (C):
When $$i=C$$ and $$r=90$$