In WAXS, an X-ray beam is directed at a sample. As the X-rays interact with the sample, they are scattered in various directions. The scattered X-rays are then collected by a detector, which records the intensity of the scattered beams at different angles. By analyzing these patterns, scientists can deduce the crystalline structure and other properties of the material at the nanoscale.