In ATR, an infrared beam is directed onto a crystal with a high refractive index. When the beam strikes the crystal at a certain angle, it undergoes total internal reflection. A small portion of the infrared light penetrates the sample in contact with the crystal, known as the evanescent wave. The sample absorbs some of this energy, and the reflected light is collected and analyzed to provide information about the sample's molecular composition.