To add a slightly more detailed answer than yesterdays kids's answer:
X-rays are electromagnetic waves, like light. They're different from visible light because they have a higher frequency, and therefore a higher energy per photon. That also means they have a lower wavelength (since f*λ=c)
Metals are solid materials in which some electrons are not strongly bound to a single nucleus, but instead form a electron cloud dispersed throughout the whole object. These electrons can therefore move easily, which is why metals conduct electricity.
An x-ray photon that hits a metal object may have enough energy to shoot straight through. If not, it will hit an electron and kick it away at high speed. The energy and momentum is taken from the x-ray photon, which means it's scattered in another direction at lower energy (and could then be absorbed outright).
So, it's the metals electron (band) structure that causes the interference with x-rays.