X-rays are attenuated as they pass through matter. That is, the intensity of an X-ray beam decreases the farther it penetrates into matter. Basically, each interaction of an X-ray photon with an atom of the material removes an X-ray from the beam, decreasing its intensity.