During the procedure, the breast is compressed between two plates to flatten and spread the tissue. This compression ensures that the X-ray beams penetrate the breast tissue evenly, providing clear and detailed images. The entire process usually takes about 20 minutes.