XRR involves directing a beam of X-rays at a sample and measuring the intensity of the reflected X-rays as the incident angle varies. At low angles, total external reflection occurs, and as the angle increases, the intensity of the reflected beam follows a pattern influenced by the film's properties. The technique relies on the principles of Fresnel equations and interference phenomena.